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.001586/0.001586, allocations: 81.58 kB / 20.68 MB, free: 1.023 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.001683/0.001683, allocations: 151.1 kB / 23.94 MB, free: 4.164 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.393/1.393, allocations: 173.4 MB / 200.4 MB, free: 12.89 MB / 190.1 MB " [Timeout remaining time 179] 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 2.194e-06/2.194e-06, allocations: 3.938 kB / 319 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.668e-05/2.887e-05, allocations: 6.25 kB / 319 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03719/0.03722, allocations: 24.61 MB / 343.6 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01811/0.05533, allocations: 8.1 MB / 351.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004852/0.06018, allocations: 250.8 kB / 351.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0202/0.08039, allocations: 8.06 MB / 360 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009464/0.08985, allocations: 2.893 MB / 362.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005183/0.09504, allocations: 1.853 MB / 364.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01398/0.109, allocations: 10.36 MB / 375.1 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02566/0.1347, allocations: 13.9 MB / 389 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01474/0.1494, allocations: 8.113 MB / 397.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009859/0.1593, allocations: 5.243 MB / 402.4 MB, free: 7.945 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003479/0.1628, allocations: 1.539 MB / 403.9 MB, free: 6.406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00494/0.1677, allocations: 1.901 MB / 405.8 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003482/0.1712, allocations: 3.043 MB / 408.8 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007228/0.1784, allocations: 3.914 MB / 412.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02621/0.2046, allocations: 20.92 MB / 433.7 MB, free: 8.559 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2046, allocations: 0 / 433.7 MB, free: 8.559 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2046, allocations: 0 / 433.7 MB, free: 8.559 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004239/0.205, allocations: 0 / 433.7 MB, free: 8.559 MB / 398.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.0338/0.2388, allocations: 11.88 MB / 445.5 MB, free: 12.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.2389, allocations: 8.922 kB / 445.6 MB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03263/0.2715, allocations: 5.687 MB / 451.2 MB, free: 6.887 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01388/0.2854, allocations: 6.363 MB / 457.6 MB, free: 468 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007126/0.2861, allocations: 0.7026 MB / 458.3 MB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002824/0.2889, allocations: 0.9372 MB / 459.2 MB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2938/0.5827, allocations: 15.21 MB / 474.5 MB, free: 117.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002962/0.583, allocations: 15.12 kB / 474.5 MB, free: 117.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001395/0.5844, allocations: 389.6 kB / 474.8 MB, free: 117.6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004921/0.5849, allocations: 0.5153 MB / 475.4 MB, free: 117.6 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02388/0.6088, allocations: 13.69 MB / 489.1 MB, free: 112.9 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05254/0.6613, allocations: 41.32 MB / 0.5179 GB, free: 80.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01154/0.6729, allocations: 7.94 MB / 0.5257 GB, free: 73.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003562/0.6764, allocations: 2.789 MB / 0.5284 GB, free: 70.68 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002889/0.6767, allocations: 77.56 kB / 0.5285 GB, free: 70.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.6768, allocations: 69.58 kB / 0.5286 GB, free: 70.53 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 7.153e-06/0.6768, allocations: 0 / 0.5286 GB, free: 70.53 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02561/0.7024, allocations: 14.64 MB / 0.5429 GB, free: 56.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/0.7025, allocations: 102.4 kB / 0.543 GB, free: 56.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004422/0.7069, allocations: 3.554 MB / 0.5464 GB, free: 52.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004062/0.7073, allocations: 89.7 kB / 0.5465 GB, free: 52.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001556/0.7088, allocations: 4.176 MB / 0.5506 GB, free: 48.51 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009109/0.7097, allocations: 1.39 MB / 0.5519 GB, free: 47.14 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001609/0.7114, allocations: 1.152 MB / 0.5531 GB, free: 45.98 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.42e-05/0.7114, allocations: 305.1 kB / 0.5534 GB, free: 45.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003192/0.7146, allocations: 2.588 MB / 0.5559 GB, free: 43.08 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003934/0.7185, allocations: 5.116 MB / 0.5609 GB, free: 36.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007348/0.7259, allocations: 8.337 MB / 0.569 GB, free: 27.26 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.646e-05/0.7259, allocations: 24 kB / 0.5691 GB, free: 27.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01116/0.7371, allocations: 8.595 MB / 0.5774 GB, free: 18.61 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.241e-05/0.7371, allocations: 44 kB / 0.5775 GB, free: 18.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.008e-05/0.7372, allocations: 84.06 kB / 0.5776 GB, free: 18.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002074/0.7393, allocations: 0.8354 MB / 0.5784 GB, free: 17.65 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003973/0.7433, allocations: 1.373 MB / 0.5797 GB, free: 16.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008545/0.7518, allocations: 7.343 MB / 0.5869 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003274/0.7551, allocations: 335.5 kB / 0.5872 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000446/0.7555, allocations: 304 kB / 0.5875 GB, free: 8.203 MB / 430.1 MB 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.004141/0.7597, allocations: 3.517 MB / 0.5909 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008093/0.7605, allocations: 413.4 kB / 0.5913 GB, free: 4.266 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009464/0.7699, allocations: 5.942 MB / 0.5971 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.9e-05/0.77, allocations: 40 kB / 0.5972 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.251e-05/0.77, allocations: 11.94 kB / 0.5972 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.086e-05/0.77, allocations: 23.92 kB / 0.5972 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0265/0.7965, allocations: 12.99 MB / 0.6099 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.967e-05/0.7966, allocations: 4 kB / 0.6099 GB, free: 1.164 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003062/0.7996, allocations: 0.691 MB / 0.6106 GB, free: 484 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002218/0.8018, allocations: 0.701 MB / 0.6113 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003661/0.8022, allocations: 87.98 kB / 0.6113 GB, free: 15.69 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01053/0.8127, allocations: 6.389 MB / 0.6176 GB, free: 9.199 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/0.8128, allocations: 8 kB / 0.6176 GB, free: 9.191 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01473/0.8275, allocations: 8.705 MB / 0.6261 GB, free: 368 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002213/0.8297, allocations: 0.8214 MB / 0.6269 GB, free: 15.53 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007663/0.8305, allocations: 79.94 kB / 0.627 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002159/0.8326, allocations: 183.9 kB / 0.6271 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005916/0.8332, allocations: 278.3 kB / 0.6274 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000281/0.8335, allocations: 116 kB / 0.6275 GB, free: 14.89 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00418/0.8377, allocations: 2.279 MB / 0.6297 GB, free: 12.62 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8377, allocations: 0 / 0.6297 GB, free: 12.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005359/0.843, allocations: 1.547 MB / 0.6313 GB, free: 11.07 MB / 478.1 MB 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.0006161/0.8436, allocations: 270.1 kB / 0.6315 GB, free: 10.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0112/0.8548, allocations: 6.248 MB / 0.6376 GB, free: 4.555 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.8549, allocations: 0 / 0.6376 GB, free: 4.555 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005352/0.8602, allocations: 2.717 MB / 0.6403 GB, free: 1.828 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005347/0.8656, allocations: 0.8923 MB / 0.6411 GB, free: 0.957 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1798/1.045, allocations: 15.96 MB / 0.6567 GB, free: 146.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00782/1.053, allocations: 5.519 MB / 0.6621 GB, free: 145 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00463/1.058, allocations: 1.865 MB / 0.6639 GB, free: 144.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/1.059, allocations: 337.4 kB / 0.6643 GB, free: 144.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.442e-06/1.059, allocations: 0 / 0.6643 GB, free: 144.9 MB / 478.1 MB Notification: Performance of Templates: time 0.0845/1.144, allocations: 54.43 MB / 0.7174 GB, free: 101.8 MB / 478.1 MB " [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 -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/jenkins/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/jenkins/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.19355446472764]