Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001867/0.001867, allocations: 106.5 kB / 21.2 MB, free: 0.6406 MB / 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.001452/0.001452, allocations: 216.6 kB / 24.49 MB, free: 3.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.415/1.415, allocations: 230.6 MB / 258.3 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 43.92 kB / 379 MB, free: 2.379 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2125, allocations: 53.37 MB / 432.4 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03137/0.2438, allocations: 24.63 MB / 457 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01593/0.2598, allocations: 8.166 MB / 465.2 MB, free: 5.727 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003087/0.2628, allocations: 254.7 kB / 465.4 MB, free: 5.477 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01843/0.2813, allocations: 7.645 MB / 473.1 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007727/0.289, allocations: 2.856 MB / 475.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004303/0.2933, allocations: 1.848 MB / 477.8 MB, free: 9.102 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01118/0.3045, allocations: 10.11 MB / 487.9 MB, free: 14.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02098/0.3255, allocations: 14.04 MB / 0.4902 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007373/0.3328, allocations: 5.509 MB / 0.4955 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008644/0.3415, allocations: 6.136 MB / 0.5015 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002348/0.3438, allocations: 1.543 MB / 0.503 GB, free: 3.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003552/0.3474, allocations: 1.914 MB / 0.5049 GB, free: 1.656 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002852/0.3502, allocations: 2.996 MB / 0.5078 GB, free: 14.65 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005521/0.3558, allocations: 4.541 MB / 0.5123 GB, free: 10.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02173/0.3775, allocations: 20.78 MB / 0.5326 GB, free: 5.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3775, allocations: 0 / 0.5326 GB, free: 5.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3775, allocations: 0 / 0.5326 GB, free: 5.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002748/0.3778, allocations: 0 / 0.5326 GB, free: 5.25 MB / 446.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.2066/0.5844, allocations: 12 MB / 0.5443 GB, free: 91.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.5844, allocations: 11.81 kB / 0.5443 GB, free: 91.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03033/0.6148, allocations: 5.602 MB / 0.5498 GB, free: 87.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01203/0.6268, allocations: 6.388 MB / 0.556 GB, free: 81.13 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004464/0.6272, allocations: 0.6942 MB / 0.5567 GB, free: 80.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002317/0.6295, allocations: 0.9285 MB / 0.5576 GB, free: 79.53 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02228/0.6518, allocations: 15.25 MB / 0.5725 GB, free: 64.19 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000208/0.652, allocations: 19.91 kB / 0.5725 GB, free: 64.17 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009442/0.653, allocations: 395.4 kB / 0.5729 GB, free: 63.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003462/0.6533, allocations: 0.5155 MB / 0.5734 GB, free: 63.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01762/0.6709, allocations: 13.72 MB / 0.5868 GB, free: 49.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04685/0.7178, allocations: 41.33 MB / 0.6271 GB, free: 7.824 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01076/0.7286, allocations: 7.982 MB / 0.6349 GB, free: 1.086 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003924/0.7325, allocations: 2.79 MB / 0.6376 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002954/0.7328, allocations: 94.94 kB / 0.6377 GB, free: 14.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.915e-05/0.7329, allocations: 69.58 kB / 0.6378 GB, free: 14.12 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 7.223e-06/0.7329, allocations: 4 kB / 0.6378 GB, free: 14.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02978/0.7626, allocations: 14.69 MB / 0.6522 GB, free: 15.48 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.5e-05/0.7627, allocations: 90.48 kB / 0.6522 GB, free: 15.38 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004998/0.7677, allocations: 3.555 MB / 0.6557 GB, free: 11.82 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002429/0.768, allocations: 89.7 kB / 0.6558 GB, free: 11.73 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003119/0.7711, allocations: 4.187 MB / 0.6599 GB, free: 7.508 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00135/0.7724, allocations: 1.406 MB / 0.6613 GB, free: 6.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/0.7743, allocations: 1.176 MB / 0.6624 GB, free: 4.902 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.7744, allocations: 309.1 kB / 0.6627 GB, free: 4.598 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00417/0.7786, allocations: 2.596 MB / 0.6652 GB, free: 1.996 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006408/0.785, allocations: 5.108 MB / 0.6702 GB, free: 11.71 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/0.7964, allocations: 8.348 MB / 0.6784 GB, free: 2.172 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.885e-05/0.7965, allocations: 24 kB / 0.6784 GB, free: 2.148 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01503/0.8115, allocations: 8.626 MB / 0.6868 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.201e-05/0.8116, allocations: 40 kB / 0.6869 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.571e-05/0.8116, allocations: 87.94 kB / 0.6869 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002407/0.8141, allocations: 0.8343 MB / 0.6878 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004866/0.8189, allocations: 1.369 MB / 0.6891 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0118/0.8307, allocations: 7.352 MB / 0.6963 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/0.834, allocations: 331.5 kB / 0.6966 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004978/0.8345, allocations: 308 kB / 0.6969 GB, free: 15.06 MB / 0.5137 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.005423/0.8399, allocations: 3.505 MB / 0.7003 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000867/0.8408, allocations: 417.4 kB / 0.7007 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/0.8517, allocations: 5.953 MB / 0.7065 GB, free: 5.137 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.386e-05/0.8517, allocations: 19.92 kB / 0.7065 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.8517, allocations: 0 / 0.7065 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002187/0.8539, allocations: 0.8407 MB / 0.7074 GB, free: 4.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000523/0.8545, allocations: 68 kB / 0.7074 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/0.8561, allocations: 179.8 kB / 0.7076 GB, free: 4.031 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000518/0.8566, allocations: 294.7 kB / 0.7079 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01041/0.8671, allocations: 5.568 MB / 0.7133 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01131/0.8784, allocations: 7.427 MB / 0.7206 GB, free: 6.672 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003169/0.8815, allocations: 2.141 MB / 0.7227 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003658/0.8852, allocations: 2.279 MB / 0.7249 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of Backend: time 3.21e-07/0.8852, allocations: 4 kB / 0.7249 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009353/0.8945, allocations: 4.659 MB / 0.7294 GB, free: 13.6 MB / 0.545 GB Notification: Performance of SimCode: time 0.3501/1.245, allocations: 15.26 MB / 0.7443 GB, free: 184.1 MB / 0.545 GB Notification: Performance of Templates: time 0.1014/1.346, allocations: 83.12 MB / 0.8255 GB, free: 117.6 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.214533816004405]