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.001571/0.001571, allocations: 109.5 kB / 17.73 MB, free: 5.359 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.00135/0.00135, allocations: 188.1 kB / 18.66 MB, free: 4.438 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.401/1.401, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001635/0.001635, allocations: 55.92 kB / 328.1 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08553/0.08718, allocations: 46.63 MB / 374.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2165/0.3038, allocations: 29.22 MB / 403.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02103/0.3248, allocations: 8.523 MB / 412.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00741/0.3323, allocations: 182.5 kB / 412.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02004/0.3524, allocations: 8.196 MB / 420.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01254/0.365, allocations: 3.028 MB / 423.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006644/0.3716, allocations: 1.901 MB / 425.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01618/0.3878, allocations: 10.5 MB / 436.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03321/0.4211, allocations: 21.46 MB / 457.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01027/0.4314, allocations: 5.602 MB / 463.3 MB, free: 7.148 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01231/0.4438, allocations: 6.361 MB / 469.7 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004675/0.4485, allocations: 1.586 MB / 471.2 MB, free: 15.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007141/0.4556, allocations: 1.937 MB / 473.2 MB, free: 13.24 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00501/0.4607, allocations: 3.184 MB / 476.4 MB, free: 10.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0116/0.4723, allocations: 6.124 MB / 482.5 MB, free: 3.902 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02883/0.5012, allocations: 21.25 MB / 0.4919 GB, free: 14.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.5012, allocations: 3.938 kB / 0.4919 GB, free: 14.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5012, allocations: 0 / 0.4919 GB, free: 14.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006373/0.5019, allocations: 0 / 0.4919 GB, free: 14.58 MB / 430.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.03999/0.5419, allocations: 12.67 MB / 0.5043 GB, free: 1.801 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.5419, allocations: 11.89 kB / 0.5043 GB, free: 1.789 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005698/0.5477, allocations: 1.639 MB / 0.5059 GB, free: 140 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04712/0.5948, allocations: 8.651 MB / 0.5144 GB, free: 7.469 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01361/0.6085, allocations: 5.917 MB / 0.5202 GB, free: 1.492 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008458/0.6093, allocations: 0.7465 MB / 0.5209 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004265/0.6136, allocations: 0.9765 MB / 0.5218 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04012/0.6538, allocations: 16.57 MB / 0.538 GB, free: 15.1 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003002/0.6541, allocations: 27.88 kB / 0.538 GB, free: 15.07 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002611/0.6567, allocations: 415.9 kB / 0.5384 GB, free: 14.67 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000646/0.6574, allocations: 0.6106 MB / 0.539 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.366/1.023, allocations: 15.97 MB / 0.5546 GB, free: 134 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06789/1.091, allocations: 51.74 MB / 0.6052 GB, free: 102.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02265/1.114, allocations: 52.27 MB / 0.6562 GB, free: 48.25 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004234/1.118, allocations: 3.464 MB / 0.6596 GB, free: 46.48 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0117/1.13, allocations: 9.418 MB / 0.6688 GB, free: 37.36 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/1.13, allocations: 60.69 kB / 0.6688 GB, free: 37.29 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 3.938e-06/1.13, allocations: 0 / 0.6688 GB, free: 37.29 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02144/1.152, allocations: 13.05 MB / 0.6816 GB, free: 24.52 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/1.152, allocations: 85.59 kB / 0.6817 GB, free: 24.43 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0043/1.156, allocations: 4.072 MB / 0.6856 GB, free: 20.39 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001848/1.156, allocations: 73.7 kB / 0.6857 GB, free: 20.31 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/1.158, allocations: 4.807 MB / 0.6904 GB, free: 15.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005682/1.158, allocations: 1.039 MB / 0.6914 GB, free: 14.47 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001284/1.16, allocations: 1.238 MB / 0.6926 GB, free: 13.22 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.285e-05/1.16, allocations: 301.1 kB / 0.6929 GB, free: 12.93 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002624/1.162, allocations: 2.448 MB / 0.6953 GB, free: 10.47 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003752/1.166, allocations: 5.607 MB / 0.7008 GB, free: 3.332 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009774/1.176, allocations: 8.692 MB / 0.7093 GB, free: 9.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-05/1.176, allocations: 32 kB / 0.7093 GB, free: 9.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01491/1.191, allocations: 8.78 MB / 0.7179 GB, free: 212 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.32e-05/1.191, allocations: 53 kB / 0.7179 GB, free: 160 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001309/1.191, allocations: 108 kB / 0.718 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002335/1.193, allocations: 0.8635 MB / 0.7189 GB, free: 15.19 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005074/1.199, allocations: 1.404 MB / 0.7202 GB, free: 13.78 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/1.21, allocations: 7.572 MB / 0.7276 GB, free: 6.059 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0047/1.215, allocations: 351.5 kB / 0.728 GB, free: 5.715 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001112/1.216, allocations: 352 kB / 0.7283 GB, free: 5.371 MB / 0.4982 GB 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.006829/1.223, allocations: 3.68 MB / 0.7319 GB, free: 1.676 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001164/1.224, allocations: 429.3 kB / 0.7323 GB, free: 1.254 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009325/1.233, allocations: 5.077 MB / 0.7373 GB, free: 12.12 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.948e-05/1.233, allocations: 31.94 kB / 0.7373 GB, free: 12.09 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/1.233, allocations: 8 kB / 0.7373 GB, free: 12.08 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.321e-05/1.233, allocations: 11.95 kB / 0.7373 GB, free: 12.07 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2358/1.469, allocations: 12.23 MB / 0.7493 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.711e-05/1.469, allocations: 5.156 kB / 0.7493 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002693/1.472, allocations: 0.5246 MB / 0.7498 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00237/1.474, allocations: 0.7024 MB / 0.7505 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004769/1.475, allocations: 66.2 kB / 0.7505 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008866/1.484, allocations: 6.706 MB / 0.7571 GB, free: 169.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.484, allocations: 10.41 kB / 0.7571 GB, free: 169.6 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01131/1.495, allocations: 7.359 MB / 0.7643 GB, free: 166.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001992/1.497, allocations: 0.8216 MB / 0.7651 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007093/1.498, allocations: 61.69 kB / 0.7651 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/1.5, allocations: 164.8 kB / 0.7653 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005289/1.5, allocations: 207.3 kB / 0.7655 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002166/1.5, allocations: 86.53 kB / 0.7656 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004522/1.505, allocations: 2.678 MB / 0.7682 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.91e-07/1.505, allocations: 0 / 0.7682 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005809/1.511, allocations: 1.546 MB / 0.7697 GB, free: 164.9 MB / 0.5138 GB 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.009891/1.521, allocations: 8.045 MB / 0.7776 GB, free: 161.3 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008473/1.529, allocations: 6.142 MB / 0.7836 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/1.529, allocations: 0 / 0.7836 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00344/1.533, allocations: 2.485 MB / 0.786 GB, free: 157.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004438/1.537, allocations: 0.9546 MB / 0.7869 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06834/1.605, allocations: 54.93 MB / 0.8406 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004965/1.61, allocations: 6.204 MB / 0.8466 GB, free: 100 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.003944/1.614, allocations: 1.936 MB / 0.8485 GB, free: 98.07 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00331/1.618, allocations: 3.389 MB / 0.8518 GB, free: 94.68 MB / 0.5138 GB Notification: Performance of SimCode: time 1.263e-06/1.618, allocations: 0 / 0.8518 GB, free: 94.68 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3312/1.949, allocations: 117.4 MB / 0.9665 GB, free: 152.7 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.62/20.57, allocations: 0.875 kB / 0.9665 GB, free: 152.7 MB / 0.5138 GB (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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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