Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.001256/0.001257, allocations: 112.4 kB / 17.28 MB, free: 6.199 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.001374/0.001374, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.248/1.248, allocations: 205.1 MB / 224.1 MB, free: 12.35 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 56.12 kB / 280.3 MB, free: 3.344 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08068/0.08186, allocations: 46.62 MB / 326.9 MB, free: 4.645 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02778/0.1097, allocations: 28.69 MB / 355.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01866/0.1284, allocations: 8.432 MB / 364 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007087/0.1355, allocations: 171.4 kB / 364.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01832/0.1539, allocations: 7.756 MB / 371.9 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01017/0.1641, allocations: 2.75 MB / 374.7 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005817/0.17, allocations: 1.774 MB / 376.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1691/0.3391, allocations: 10.43 MB / 386.9 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02924/0.3684, allocations: 24.79 MB / 411.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01373/0.3822, allocations: 6.228 MB / 417.9 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01043/0.3926, allocations: 6.471 MB / 424.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004466/0.3972, allocations: 1.578 MB / 426 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005721/0.4029, allocations: 1.944 MB / 427.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004666/0.4076, allocations: 3.192 MB / 431.1 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01064/0.4182, allocations: 6.133 MB / 437.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02117/0.4394, allocations: 21.06 MB / 458.3 MB, free: 9.734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.4395, allocations: 4 kB / 458.3 MB, free: 9.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4395, allocations: 0 / 458.3 MB, free: 9.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004541/0.44, allocations: 0 / 458.3 MB, free: 9.73 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03158/0.4715, allocations: 12.49 MB / 470.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.4716, allocations: 11.89 kB / 470.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004566/0.4762, allocations: 1.634 MB / 472.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04475/0.521, allocations: 8.582 MB / 481 MB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01538/0.5364, allocations: 5.888 MB / 486.9 MB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000982/0.5374, allocations: 0.7516 MB / 487.7 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004693/0.5421, allocations: 0.9779 MB / 488.6 MB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04572/0.5879, allocations: 16.58 MB / 0.4934 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004431/0.5884, allocations: 23.66 kB / 0.4934 GB, free: 11.1 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004177/0.5926, allocations: 417.8 kB / 0.4938 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006954/0.5933, allocations: 0.6029 MB / 0.4944 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0352/0.6285, allocations: 15.97 MB / 0.51 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4273/1.056, allocations: 52.12 MB / 0.5609 GB, free: 121 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02445/1.08, allocations: 52.26 MB / 0.6119 GB, free: 70.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005119/1.085, allocations: 3.461 MB / 0.6153 GB, free: 69.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01325/1.099, allocations: 9.415 MB / 0.6245 GB, free: 63.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/1.099, allocations: 60.22 kB / 0.6245 GB, free: 63.15 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.338e-06/1.099, allocations: 0 / 0.6245 GB, free: 63.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02189/1.121, allocations: 12.89 MB / 0.6371 GB, free: 55.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/1.121, allocations: 79.81 kB / 0.6372 GB, free: 55.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004544/1.125, allocations: 4.064 MB / 0.6412 GB, free: 53.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000293/1.126, allocations: 73.55 kB / 0.6412 GB, free: 53.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001642/1.127, allocations: 4.641 MB / 0.6458 GB, free: 49.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006259/1.128, allocations: 0.9882 MB / 0.6467 GB, free: 48.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001251/1.129, allocations: 1.242 MB / 0.648 GB, free: 47.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.216e-05/1.129, allocations: 301.1 kB / 0.6482 GB, free: 47.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/1.132, allocations: 2.444 MB / 0.6506 GB, free: 44.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003512/1.135, allocations: 5.599 MB / 0.6561 GB, free: 37.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006759/1.142, allocations: 8.686 MB / 0.6646 GB, free: 27.51 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4e-05/1.142, allocations: 32 kB / 0.6646 GB, free: 27.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01139/1.154, allocations: 8.733 MB / 0.6731 GB, free: 18.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.692e-05/1.154, allocations: 52 kB / 0.6732 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001019/1.154, allocations: 108.9 kB / 0.6733 GB, free: 18.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001896/1.156, allocations: 0.8602 MB / 0.6741 GB, free: 17.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003962/1.16, allocations: 1.404 MB / 0.6755 GB, free: 16.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007797/1.168, allocations: 7.501 MB / 0.6828 GB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004181/1.172, allocations: 351.3 kB / 0.6832 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006614/1.172, allocations: 352 kB / 0.6835 GB, free: 7.934 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004382/1.177, allocations: 3.684 MB / 0.6871 GB, free: 4.234 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007671/1.178, allocations: 407 kB / 0.6875 GB, free: 3.832 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006891/1.184, allocations: 5.062 MB / 0.6924 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/1.185, allocations: 35.94 kB / 0.6925 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/1.185, allocations: 15.92 kB / 0.6925 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.539e-05/1.185, allocations: 15.94 kB / 0.6925 GB, free: 14.65 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02049/1.205, allocations: 12.2 MB / 0.7044 GB, free: 2.371 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/1.205, allocations: 4 kB / 0.7044 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002131/1.207, allocations: 0.5226 MB / 0.7049 GB, free: 1.844 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/1.209, allocations: 0.6956 MB / 0.7056 GB, free: 1.145 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002822/1.21, allocations: 67.98 kB / 0.7057 GB, free: 1.078 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.159/1.369, allocations: 6.639 MB / 0.7121 GB, free: 149.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/1.369, allocations: 4.594 kB / 0.7121 GB, free: 149.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/1.38, allocations: 7.317 MB / 0.7193 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001631/1.381, allocations: 0.7986 MB / 0.7201 GB, free: 145.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004757/1.382, allocations: 62.09 kB / 0.7201 GB, free: 145.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/1.384, allocations: 167.6 kB / 0.7203 GB, free: 145.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004658/1.384, allocations: 205.2 kB / 0.7205 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001682/1.384, allocations: 90.42 kB / 0.7206 GB, free: 145.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00355/1.388, allocations: 2.675 MB / 0.7232 GB, free: 144.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.388, allocations: 3.094 kB / 0.7232 GB, free: 144.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004625/1.392, allocations: 1.55 MB / 0.7247 GB, free: 144.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (263): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008849/1.401, allocations: 8.002 MB / 0.7325 GB, free: 141 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01538/1.417, allocations: 9.096 MB / 0.7414 GB, free: 138.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/1.417, allocations: 0 / 0.7414 GB, free: 138.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003092/1.42, allocations: 2.473 MB / 0.7438 GB, free: 137.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004153/1.424, allocations: 0.9435 MB / 0.7447 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08314/1.507, allocations: 67.4 MB / 0.8106 GB, free: 67.71 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004686/1.512, allocations: 6.209 MB / 0.8166 GB, free: 61.47 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00455/1.516, allocations: 1.948 MB / 0.8185 GB, free: 59.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003125/1.52, allocations: 3.385 MB / 0.8218 GB, free: 56.14 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/1.52, allocations: 0 / 0.8218 GB, free: 56.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2891/1.809, allocations: 118.8 MB / 0.9378 GB, free: 107.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/1.809, allocations: 282.5 kB / 0.9381 GB, free: 107.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.974/5.783, allocations: 0 / 0.9381 GB, free: 107.4 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches