Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 111.6 kB / 16.63 MB, free: 6.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 193.9 kB / 17.55 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 46.39 kB / 300.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1111, allocations: 49.44 MB / 349.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2509/0.362, allocations: 29.83 MB / 379.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01974/0.3818, allocations: 8.525 MB / 388.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008385/0.3902, allocations: 176 kB / 388.2 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01223/0.4024, allocations: 4.597 MB / 392.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01067/0.4131, allocations: 2.699 MB / 395.5 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005965/0.4191, allocations: 1.479 MB / 397 MB, free: 1.527 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01434/0.4334, allocations: 8.764 MB / 405.8 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01996/0.4534, allocations: 14.37 MB / 420.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007216/0.4607, allocations: 4.187 MB / 424.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008255/0.469, allocations: 4.78 MB / 429.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003786/0.4728, allocations: 1.164 MB / 430.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007216/0.48, allocations: 1.535 MB / 431.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003673/0.4837, allocations: 2.404 MB / 434.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009083/0.4928, allocations: 4.669 MB / 438.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01763/0.5105, allocations: 15.7 MB / 454.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.5105, allocations: 0 / 454.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5106, allocations: 0 / 454.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003698/0.5109, allocations: 0 / 454.6 MB, free: 13.27 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03285/0.5438, allocations: 9.779 MB / 464.4 MB, free: 3.391 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.5439, allocations: 8.031 kB / 464.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005736/0.5496, allocations: 1.153 MB / 465.5 MB, free: 2.219 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03022/0.5798, allocations: 5.259 MB / 470.8 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/0.5916, allocations: 4.952 MB / 475.7 MB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007589/0.5924, allocations: 0.5339 MB / 476.3 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004041/0.5965, allocations: 0.7146 MB / 477 MB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0322/0.6287, allocations: 11.33 MB / 488.3 MB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004317/0.6292, allocations: 7.906 kB / 488.3 MB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002466/0.6317, allocations: 304 kB / 488.6 MB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005034/0.6322, allocations: 443 kB / 489 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02404/0.6562, allocations: 10.83 MB / 499.9 MB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2977/0.9539, allocations: 38 MB / 0.5253 GB, free: 108.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01809/0.9721, allocations: 28.1 MB / 0.5527 GB, free: 83.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004383/0.9765, allocations: 2.643 MB / 0.5553 GB, free: 83.05 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01262/0.9892, allocations: 7.93 MB / 0.563 GB, free: 80.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.9892, allocations: 63.34 kB / 0.5631 GB, free: 80.89 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 4.147e-06/0.9892, allocations: 0 / 0.5631 GB, free: 80.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.01838/1.008, allocations: 10.37 MB / 0.5732 GB, free: 76.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00155/1.009, allocations: 2.006 MB / 0.5752 GB, free: 74.36 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004678/1.014, allocations: 3.818 MB / 0.5789 GB, free: 72.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002791/1.014, allocations: 68.77 kB / 0.579 GB, free: 72.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001529/1.016, allocations: 3.545 MB / 0.5824 GB, free: 70.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006038/1.016, allocations: 0.8359 MB / 0.5832 GB, free: 69.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001089/1.017, allocations: 0.9564 MB / 0.5842 GB, free: 69.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.864e-05/1.017, allocations: 305.1 kB / 0.5845 GB, free: 68.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002221/1.02, allocations: 1.895 MB / 0.5863 GB, free: 67.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003132/1.023, allocations: 4.388 MB / 0.5906 GB, free: 63.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005593/1.028, allocations: 6.787 MB / 0.5972 GB, free: 57.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.361e-05/1.028, allocations: 25.34 kB / 0.5973 GB, free: 57.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009779/1.038, allocations: 6.986 MB / 0.6041 GB, free: 53.17 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.972e-05/1.038, allocations: 40.97 kB / 0.6041 GB, free: 53.13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001361/1.039, allocations: 91.2 kB / 0.6042 GB, free: 53.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001768/1.04, allocations: 0.7439 MB / 0.6049 GB, free: 52.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003304/1.044, allocations: 1.123 MB / 0.606 GB, free: 51.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005729/1.049, allocations: 5.635 MB / 0.6115 GB, free: 45.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004175/1.054, allocations: 315 kB / 0.6118 GB, free: 45.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000594/1.054, allocations: 272 kB / 0.6121 GB, free: 44.82 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004138/1.058, allocations: 2.518 MB / 0.6146 GB, free: 42.29 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000842/1.059, allocations: 387.3 kB / 0.6149 GB, free: 41.91 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006314/1.065, allocations: 4.275 MB / 0.6191 GB, free: 37.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/1.066, allocations: 31.92 kB / 0.6191 GB, free: 37.58 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/1.066, allocations: 7.688 kB / 0.6191 GB, free: 37.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.065e-05/1.066, allocations: 15.95 kB / 0.6192 GB, free: 37.56 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02011/1.086, allocations: 14.28 MB / 0.6331 GB, free: 23.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/1.086, allocations: 12 kB / 0.6331 GB, free: 23.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/1.087, allocations: 487.4 kB / 0.6336 GB, free: 22.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001787/1.089, allocations: 0.6853 MB / 0.6342 GB, free: 21.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001633/1.089, allocations: 75.97 kB / 0.6343 GB, free: 21.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007418/1.097, allocations: 7.496 MB / 0.6416 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001481/1.098, allocations: 1.957 MB / 0.6435 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0088/1.107, allocations: 6.738 MB / 0.6501 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002104/1.109, allocations: 0.7967 MB / 0.6509 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006531/1.11, allocations: 63.97 kB / 0.651 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001745/1.112, allocations: 163.8 kB / 0.6511 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004625/1.112, allocations: 217.5 kB / 0.6513 GB, free: 3.676 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/1.112, allocations: 87.98 kB / 0.6514 GB, free: 3.59 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003246/1.116, allocations: 2.513 MB / 0.6539 GB, free: 1.098 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.116, allocations: 0 / 0.6539 GB, free: 1.098 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004579/1.12, allocations: 1.292 MB / 0.6551 GB, free: 15.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01004/1.13, allocations: 7.425 MB / 0.6624 GB, free: 8.094 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01455/1.145, allocations: 7.011 MB / 0.6692 GB, free: 1.062 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.871e-05/1.145, allocations: 0 / 0.6692 GB, free: 1.062 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005015/1.15, allocations: 2.411 MB / 0.6716 GB, free: 14.62 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006114/1.156, allocations: 0.9835 MB / 0.6725 GB, free: 13.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2844/1.44, allocations: 58.29 MB / 0.7295 GB, free: 117.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00413/1.445, allocations: 4.503 MB / 0.7339 GB, free: 116 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004115/1.449, allocations: 1.359 MB / 0.7352 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003599/1.452, allocations: 2.54 MB / 0.7377 GB, free: 113.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/1.452, allocations: 0 / 0.7377 GB, free: 113.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1419/1.594, allocations: 106.2 MB / 0.8413 GB, free: 9.316 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/1.595, allocations: 304.5 kB / 0.8416 GB, free: 8.938 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.146/5.74, allocations: 3.938 kB / 0.8416 GB, free: 8.934 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)