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_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00181/0.00181, allocations: 73.64 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002043/0.002043, allocations: 149.9 kB / 24.49 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 43.34 kB / 319.5 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08232/0.08388, allocations: 52.16 MB / 371.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02982/0.1137, allocations: 24.6 MB / 396.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01605/0.1298, allocations: 8.085 MB / 404.3 MB, free: 6.484 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00394/0.1337, allocations: 258.7 kB / 404.6 MB, free: 6.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01918/0.1529, allocations: 8.023 MB / 412.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008903/0.1618, allocations: 2.827 MB / 415.4 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005109/0.1669, allocations: 1.839 MB / 417.2 MB, free: 9.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01263/0.1795, allocations: 10.05 MB / 427.3 MB, free: 15.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02142/0.2009, allocations: 13.87 MB / 441.2 MB, free: 1.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007481/0.2084, allocations: 5.498 MB / 446.7 MB, free: 11.91 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009566/0.218, allocations: 5.824 MB / 452.5 MB, free: 6.062 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003136/0.2211, allocations: 1.543 MB / 454 MB, free: 4.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004793/0.2259, allocations: 1.871 MB / 455.9 MB, free: 2.648 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0051/0.231, allocations: 2.993 MB / 458.9 MB, free: 15.65 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007352/0.2384, allocations: 4.541 MB / 463.4 MB, free: 11.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2026/0.441, allocations: 20.75 MB / 484.2 MB, free: 37.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.441, allocations: 3.891 kB / 484.2 MB, free: 37.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.441, allocations: 0 / 484.2 MB, free: 37.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004185/0.4414, allocations: 0 / 484.2 MB, free: 37.73 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03317/0.4746, allocations: 11.98 MB / 496.2 MB, free: 34.08 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.4746, allocations: 11.36 kB / 496.2 MB, free: 34.08 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03032/0.5049, allocations: 5.684 MB / 0.4901 GB, free: 31.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01268/0.5176, allocations: 6.366 MB / 0.4963 GB, free: 29.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003929/0.518, allocations: 0.7042 MB / 0.497 GB, free: 29.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002451/0.5204, allocations: 0.9293 MB / 0.4979 GB, free: 29.26 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02283/0.5433, allocations: 15.22 MB / 0.5128 GB, free: 20.29 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002284/0.5435, allocations: 14.98 kB / 0.5128 GB, free: 20.29 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00122/0.5447, allocations: 387 kB / 0.5132 GB, free: 19.99 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003785/0.5451, allocations: 0.5195 MB / 0.5137 GB, free: 19.67 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02124/0.5663, allocations: 13.68 MB / 0.527 GB, free: 5.973 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07523/0.6416, allocations: 41.31 MB / 0.5674 GB, free: 12.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01477/0.6563, allocations: 7.955 MB / 0.5751 GB, free: 5.855 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004721/0.6611, allocations: 2.791 MB / 0.5779 GB, free: 3.059 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003116/0.6614, allocations: 74.97 kB / 0.5779 GB, free: 2.984 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.774e-05/0.6614, allocations: 73.33 kB / 0.578 GB, free: 2.906 MB / 478.1 MB Notification: Performance of pre-optimization done (n=384): time 6.542e-06/0.6615, allocations: 0 / 0.578 GB, free: 2.906 MB / 478.1 MB Notification: Performance of matching and sorting (n=392): time 0.03109/0.6925, allocations: 14.64 MB / 0.5923 GB, free: 4.258 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/0.6926, allocations: 98.42 kB / 0.5924 GB, free: 4.148 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005935/0.6986, allocations: 3.554 MB / 0.5959 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002917/0.6988, allocations: 97.7 kB / 0.596 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003106/0.702, allocations: 4.185 MB / 0.6 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001299/0.7033, allocations: 1.412 MB / 0.6014 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00189/0.7051, allocations: 1.164 MB / 0.6026 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.7053, allocations: 301.1 kB / 0.6029 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004263/0.7095, allocations: 2.591 MB / 0.6054 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006337/0.7159, allocations: 5.104 MB / 0.6104 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/0.7271, allocations: 8.339 MB / 0.6185 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.659e-05/0.7271, allocations: 24 kB / 0.6185 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01492/0.7421, allocations: 8.607 MB / 0.6269 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.406e-05/0.7421, allocations: 40 kB / 0.627 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001265/0.7423, allocations: 84 kB / 0.6271 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002395/0.7447, allocations: 0.835 MB / 0.6279 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004601/0.7493, allocations: 1.372 MB / 0.6292 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01151/0.7608, allocations: 7.347 MB / 0.6364 GB, free: 5.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003673/0.7644, allocations: 331.5 kB / 0.6367 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005225/0.765, allocations: 312 kB / 0.637 GB, free: 5.043 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005335/0.7703, allocations: 3.517 MB / 0.6404 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008371/0.7711, allocations: 405.4 kB / 0.6408 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/0.7817, allocations: 5.944 MB / 0.6466 GB, free: 11.26 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.545e-05/0.7818, allocations: 43.94 kB / 0.6467 GB, free: 11.22 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/0.7818, allocations: 8 kB / 0.6467 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-05/0.7818, allocations: 19.92 kB / 0.6467 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02329/0.8051, allocations: 13 MB / 0.6594 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/0.8051, allocations: 7.984 kB / 0.6594 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002822/0.808, allocations: 0.6886 MB / 0.6601 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002133/0.8101, allocations: 0.6979 MB / 0.6607 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002777/0.8104, allocations: 83.98 kB / 0.6608 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009838/0.8202, allocations: 6.389 MB / 0.6671 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.8202, allocations: 10.91 kB / 0.6671 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2022/1.022, allocations: 8.708 MB / 0.6756 GB, free: 202.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002408/1.025, allocations: 0.8239 MB / 0.6764 GB, free: 202.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000571/1.025, allocations: 76.77 kB / 0.6765 GB, free: 202.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001825/1.027, allocations: 184.8 kB / 0.6766 GB, free: 202.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004836/1.028, allocations: 281.1 kB / 0.6769 GB, free: 202.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002487/1.028, allocations: 111.8 kB / 0.677 GB, free: 202.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003193/1.031, allocations: 2.287 MB / 0.6792 GB, free: 202.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/1.031, allocations: 3.969 kB / 0.6792 GB, free: 202.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005376/1.037, allocations: 1.542 MB / 0.6808 GB, free: 202.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (377): * Single equations (assignments): 376 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004958/1.037, allocations: 249.5 kB / 0.681 GB, free: 202 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008448/1.045, allocations: 6.275 MB / 0.6871 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.045, allocations: 3.875 kB / 0.6871 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00372/1.049, allocations: 2.715 MB / 0.6898 GB, free: 198.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004204/1.053, allocations: 0.8874 MB / 0.6906 GB, free: 198.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02177/1.075, allocations: 16.04 MB / 0.7063 GB, free: 188.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005036/1.08, allocations: 5.514 MB / 0.7117 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004148/1.084, allocations: 1.866 MB / 0.7135 GB, free: 183.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000891/1.085, allocations: 344.1 kB / 0.7138 GB, free: 183 MB / 0.5606 GB Notification: Performance of SimCode: time 1.172e-06/1.085, allocations: 3.938 kB / 0.7138 GB, free: 183 MB / 0.5606 GB Notification: Performance of Templates: time 0.08659/1.172, allocations: 54.77 MB / 0.7673 GB, free: 131.4 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.070556684047915]