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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002123/0.002123, allocations: 112.5 kB / 21.94 MB, free: 12 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002548/0.002548, allocations: 200.8 kB / 25.23 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 207.6 MB / 236 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 55.92 kB / 348.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3095, allocations: 49.16 MB / 397.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03414/0.3436, allocations: 29.39 MB / 427 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02498/0.3686, allocations: 8.584 MB / 435.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009106/0.3777, allocations: 221.8 kB / 435.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02251/0.4002, allocations: 8.325 MB / 444.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01588/0.4161, allocations: 3.148 MB / 447.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007655/0.4238, allocations: 1.969 MB / 449.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01833/0.4421, allocations: 10.59 MB / 459.9 MB, free: 4.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03238/0.4745, allocations: 14.19 MB / 474.1 MB, free: 6.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01162/0.4861, allocations: 5.743 MB / 479.8 MB, free: 0.832 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01313/0.4992, allocations: 6.451 MB / 486.3 MB, free: 10.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005837/0.5051, allocations: 1.586 MB / 487.8 MB, free: 8.773 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008181/0.5133, allocations: 1.941 MB / 489.8 MB, free: 6.832 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006384/0.5196, allocations: 3.195 MB / 493 MB, free: 3.629 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01339/0.533, allocations: 6.132 MB / 499.1 MB, free: 13.47 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03323/0.5663, allocations: 21.24 MB / 0.5081 GB, free: 8.168 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.5663, allocations: 4 kB / 0.5082 GB, free: 8.164 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.5663, allocations: 0 / 0.5082 GB, free: 8.164 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006678/0.5669, allocations: 0 / 0.5082 GB, free: 8.164 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.04165/0.6086, allocations: 12.59 MB / 0.5205 GB, free: 11.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.6086, allocations: 8.031 kB / 0.5205 GB, free: 11.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04746/0.6561, allocations: 8.655 MB / 0.5289 GB, free: 2.801 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01661/0.6727, allocations: 5.974 MB / 0.5347 GB, free: 12.76 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009555/0.6737, allocations: 0.7425 MB / 0.5355 GB, free: 12.01 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005102/0.6788, allocations: 0.9725 MB / 0.5364 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04865/0.7274, allocations: 16.56 MB / 0.5526 GB, free: 10.38 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005211/0.7279, allocations: 15.91 kB / 0.5526 GB, free: 10.37 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004694/0.7326, allocations: 412 kB / 0.553 GB, free: 9.965 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008417/0.7335, allocations: 0.6106 MB / 0.5536 GB, free: 9.352 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4252/1.159, allocations: 15.97 MB / 0.5692 GB, free: 130.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08541/1.244, allocations: 49.89 MB / 0.6179 GB, free: 98.14 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01813/1.262, allocations: 12.25 MB / 0.6299 GB, free: 88.65 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004799/1.267, allocations: 3.151 MB / 0.633 GB, free: 85.49 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/1.282, allocations: 9.071 MB / 0.6418 GB, free: 76.65 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/1.282, allocations: 64.62 kB / 0.6419 GB, free: 76.58 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.089e-06/1.282, allocations: 0 / 0.6419 GB, free: 76.58 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02628/1.309, allocations: 12.89 MB / 0.6545 GB, free: 64.01 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/1.309, allocations: 77.59 kB / 0.6545 GB, free: 63.92 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005582/1.314, allocations: 4.082 MB / 0.6585 GB, free: 59.88 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006778/1.315, allocations: 69.7 kB / 0.6586 GB, free: 59.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002283/1.317, allocations: 4.804 MB / 0.6633 GB, free: 54.99 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001242/1.319, allocations: 1.036 MB / 0.6643 GB, free: 53.97 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001749/1.32, allocations: 1.242 MB / 0.6655 GB, free: 52.71 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.199e-05/1.32, allocations: 305.1 kB / 0.6658 GB, free: 52.41 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00308/1.323, allocations: 2.444 MB / 0.6682 GB, free: 49.96 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004706/1.328, allocations: 5.607 MB / 0.6737 GB, free: 42.82 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008519/1.337, allocations: 8.686 MB / 0.6821 GB, free: 32.56 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.652e-05/1.337, allocations: 32 kB / 0.6822 GB, free: 32.53 MB / 478.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01409/1.351, allocations: 8.751 MB / 0.6907 GB, free: 23.73 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.676e-05/1.351, allocations: 63.98 kB / 0.6908 GB, free: 23.67 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/1.351, allocations: 108 kB / 0.6909 GB, free: 23.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002096/1.353, allocations: 0.8566 MB / 0.6917 GB, free: 22.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004612/1.358, allocations: 1.408 MB / 0.6931 GB, free: 21.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008897/1.367, allocations: 7.469 MB / 0.7004 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005031/1.372, allocations: 351.6 kB / 0.7007 GB, free: 13.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/1.373, allocations: 352 kB / 0.7011 GB, free: 13.02 MB / 478.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.005725/1.379, allocations: 3.68 MB / 0.7046 GB, free: 9.324 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009971/1.38, allocations: 433.2 kB / 0.7051 GB, free: 8.898 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007445/1.387, allocations: 5.047 MB / 0.71 GB, free: 3.793 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/1.387, allocations: 32 kB / 0.71 GB, free: 3.762 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/1.387, allocations: 8 kB / 0.71 GB, free: 3.754 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.549e-05/1.387, allocations: 19.88 kB / 0.71 GB, free: 3.734 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02585/1.413, allocations: 12.22 MB / 0.722 GB, free: 7.375 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/1.413, allocations: 4.438 kB / 0.722 GB, free: 7.371 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002441/1.415, allocations: 0.5266 MB / 0.7225 GB, free: 6.844 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002141/1.418, allocations: 0.7064 MB / 0.7232 GB, free: 6.133 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003781/1.418, allocations: 59.98 kB / 0.7232 GB, free: 6.074 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/1.428, allocations: 6.609 MB / 0.7297 GB, free: 15.35 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/1.428, allocations: 7.938 kB / 0.7297 GB, free: 15.34 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01316/1.441, allocations: 7.341 MB / 0.7369 GB, free: 7.852 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002638/1.444, allocations: 0.7626 MB / 0.7376 GB, free: 7.086 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008944/1.445, allocations: 55.94 kB / 0.7377 GB, free: 7.031 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/1.447, allocations: 167.8 kB / 0.7378 GB, free: 6.867 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005107/1.447, allocations: 209.9 kB / 0.738 GB, free: 6.66 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002141/1.448, allocations: 95.84 kB / 0.7381 GB, free: 6.566 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005118/1.453, allocations: 2.676 MB / 0.7407 GB, free: 3.879 MB / 0.4982 GB Notification: Performance of sort global known variables: time 4.1e-07/1.453, allocations: 0 / 0.7407 GB, free: 3.879 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.007587/1.46, allocations: 1.547 MB / 0.7422 GB, free: 2.332 MB / 0.4982 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.000903/1.461, allocations: 218.7 kB / 0.7425 GB, free: 2.105 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01174/1.473, allocations: 5.887 MB / 0.7482 GB, free: 12.2 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/1.473, allocations: 4 kB / 0.7482 GB, free: 12.2 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004818/1.478, allocations: 2.283 MB / 0.7504 GB, free: 9.898 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005052/1.483, allocations: 0.9509 MB / 0.7514 GB, free: 8.953 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2524/1.735, allocations: 16.24 MB / 0.7672 GB, free: 162.4 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01041/1.746, allocations: 6.017 MB / 0.7731 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001745/1.747, allocations: 379.2 kB / 0.7735 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of SimCode: time 1.333e-06/1.747, allocations: 1.281 kB / 0.7735 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of Templates: time 0.1691/1.917, allocations: 156.5 MB / 0.9263 GB, free: 23.11 MB / 0.5138 GB " [Timeout remaining time 658] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.628415170125663]