Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001313, allocations: 105.4 kB / 19.8 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 210.4 kB / 22.99 MB, free: 5.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 230.2 MB / 256.2 MB, free: 8.535 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 67.89 kB / 376.5 MB, free: 3.566 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.315, allocations: 53.32 MB / 429.8 MB, free: 7.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03368/0.3487, allocations: 28.79 MB / 458.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0188/0.3675, allocations: 8.532 MB / 467.2 MB, free: 2.059 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005524/0.373, allocations: 211.4 kB / 467.4 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02046/0.3935, allocations: 8.256 MB / 475.6 MB, free: 9.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009936/0.4034, allocations: 2.835 MB / 478.5 MB, free: 6.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006195/0.4096, allocations: 1.901 MB / 480.4 MB, free: 4.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01494/0.4246, allocations: 10.05 MB / 490.4 MB, free: 10.74 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02721/0.4518, allocations: 13.17 MB / 0.4918 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009095/0.4609, allocations: 5.381 MB / 0.497 GB, free: 8.051 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01149/0.4724, allocations: 6.14 MB / 0.503 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005118/0.4775, allocations: 1.539 MB / 0.5045 GB, free: 360 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006756/0.4842, allocations: 1.921 MB / 0.5064 GB, free: 14.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005552/0.4898, allocations: 2.993 MB / 0.5093 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01115/0.5009, allocations: 5.852 MB / 0.515 GB, free: 5.555 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02738/0.5283, allocations: 20.69 MB / 0.5353 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.5283, allocations: 0 / 0.5353 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5283, allocations: 4 kB / 0.5353 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004715/0.5288, allocations: 0 / 0.5353 GB, free: 0.7969 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.2265/0.7553, allocations: 12.09 MB / 0.5471 GB, free: 89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.7554, allocations: 11.89 kB / 0.5471 GB, free: 89 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02884/0.7842, allocations: 5.594 MB / 0.5525 GB, free: 86.45 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01149/0.7957, allocations: 6.331 MB / 0.5587 GB, free: 80.67 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004583/0.7962, allocations: 0.7051 MB / 0.5594 GB, free: 79.97 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002912/0.7991, allocations: 0.9212 MB / 0.5603 GB, free: 79.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02942/0.8285, allocations: 15.1 MB / 0.5751 GB, free: 63.91 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002695/0.8288, allocations: 27.83 kB / 0.5751 GB, free: 63.88 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002107/0.8309, allocations: 395.3 kB / 0.5755 GB, free: 63.51 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000343/0.8312, allocations: 0.5116 MB / 0.576 GB, free: 62.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02212/0.8533, allocations: 13.78 MB / 0.5894 GB, free: 49.19 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05915/0.9125, allocations: 47.65 MB / 0.6359 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02435/0.9368, allocations: 28.23 MB / 0.6635 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005362/0.9422, allocations: 2.8 MB / 0.6662 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005122/0.9427, allocations: 338.2 kB / 0.6666 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.61e-05/0.9428, allocations: 85.56 kB / 0.6667 GB, free: 13.33 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 5.3e-06/0.9428, allocations: 0 / 0.6667 GB, free: 13.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03197/0.9748, allocations: 14.9 MB / 0.6812 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.9748, allocations: 94.42 kB / 0.6813 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005571/0.9804, allocations: 3.611 MB / 0.6848 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004601/0.9809, allocations: 91.02 kB / 0.6849 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00335/0.9842, allocations: 4.184 MB / 0.689 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001465/0.9857, allocations: 1.406 MB / 0.6904 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001849/0.9875, allocations: 1.176 MB / 0.6915 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.9876, allocations: 313 kB / 0.6918 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004164/0.9918, allocations: 2.596 MB / 0.6943 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006243/0.9981, allocations: 5.087 MB / 0.6993 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.012/1.01, allocations: 8.356 MB / 0.7075 GB, free: 1 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.195e-05/1.01, allocations: 24 kB / 0.7075 GB, free: 0.9766 MB / 0.5137 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01668/1.027, allocations: 8.649 MB / 0.7159 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.333e-05/1.027, allocations: 43.94 kB / 0.716 GB, free: 8.254 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001198/1.027, allocations: 80 kB / 0.7161 GB, free: 8.176 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002412/1.029, allocations: 0.8581 MB / 0.7169 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005014/1.034, allocations: 1.369 MB / 0.7182 GB, free: 5.945 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/1.046, allocations: 7.685 MB / 0.7257 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00407/1.05, allocations: 331.5 kB / 0.7261 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007501/1.051, allocations: 308 kB / 0.7263 GB, free: 13.48 MB / 0.545 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.006023/1.057, allocations: 3.516 MB / 0.7298 GB, free: 9.953 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009772/1.058, allocations: 437.2 kB / 0.7302 GB, free: 9.523 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.069, allocations: 5.961 MB / 0.736 GB, free: 3.523 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.879e-05/1.069, allocations: 44 kB / 0.7361 GB, free: 3.48 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/1.069, allocations: 8 kB / 0.7361 GB, free: 3.473 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.177e-05/1.069, allocations: 23.86 kB / 0.7361 GB, free: 3.449 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4671/1.536, allocations: 14.94 MB / 0.7507 GB, free: 178.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.631e-05/1.536, allocations: 7.906 kB / 0.7507 GB, free: 178.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002354/1.539, allocations: 0.6964 MB / 0.7514 GB, free: 178.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001713/1.54, allocations: 0.711 MB / 0.7521 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002186/1.541, allocations: 87.11 kB / 0.7521 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007143/1.548, allocations: 6.711 MB / 0.7587 GB, free: 174.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.548, allocations: 7.781 kB / 0.7587 GB, free: 174.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/1.559, allocations: 8.777 MB / 0.7673 GB, free: 171 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/1.561, allocations: 0.906 MB / 0.7682 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005311/1.561, allocations: 82.38 kB / 0.7682 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/1.563, allocations: 183 kB / 0.7684 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000475/1.563, allocations: 271.4 kB / 0.7687 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002119/1.564, allocations: 118.2 kB / 0.7688 GB, free: 170.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003055/1.567, allocations: 2.412 MB / 0.7711 GB, free: 169.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/1.567, allocations: 3.812 kB / 0.7711 GB, free: 169.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004867/1.572, allocations: 1.554 MB / 0.7727 GB, free: 168.4 MB / 0.545 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.0004816/1.572, allocations: 253.8 kB / 0.7729 GB, free: 168.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008136/1.58, allocations: 6.293 MB / 0.7791 GB, free: 162.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/1.58, allocations: 0 / 0.7791 GB, free: 162.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003509/1.584, allocations: 2.744 MB / 0.7817 GB, free: 160.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004015/1.588, allocations: 0.9608 MB / 0.7827 GB, free: 159.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02087/1.609, allocations: 16.02 MB / 0.7983 GB, free: 144.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00461/1.613, allocations: 5.975 MB / 0.8041 GB, free: 138.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003938/1.617, allocations: 1.881 MB / 0.806 GB, free: 136.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008509/1.618, allocations: 363.3 kB / 0.8063 GB, free: 136.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.333e-06/1.618, allocations: 0 / 0.8063 GB, free: 136.1 MB / 0.545 GB Notification: Performance of Templates: time 0.08737/1.705, allocations: 63.09 MB / 0.8679 GB, free: 73.43 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.891646854579449]