Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00126/0.00126, allocations: 110.3 kB / 21.1 MB, free: 0.7695 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.001453/0.001453, allocations: 209.1 kB / 24.38 MB, free: 4.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.448/1.448, allocations: 230.4 MB / 257.9 MB, free: 7.93 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003385/0.003385, allocations: 63.89 kB / 378.7 MB, free: 2.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2589, allocations: 53.36 MB / 432 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03399/0.2929, allocations: 28.63 MB / 460.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01956/0.3125, allocations: 8.505 MB / 469.2 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005623/0.3181, allocations: 254.7 kB / 469.4 MB, free: 1.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0208/0.3389, allocations: 8.274 MB / 477.7 MB, free: 9.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009838/0.3488, allocations: 2.913 MB / 480.6 MB, free: 6.266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005663/0.3544, allocations: 1.935 MB / 482.5 MB, free: 4.332 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01474/0.3692, allocations: 10.1 MB / 492.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02365/0.3928, allocations: 13.17 MB / 0.494 GB, free: 12.9 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009905/0.4027, allocations: 5.502 MB / 0.4993 GB, free: 7.383 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01084/0.4136, allocations: 6.14 MB / 0.5053 GB, free: 1.223 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004032/0.4176, allocations: 1.539 MB / 0.5068 GB, free: 15.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005569/0.4232, allocations: 1.921 MB / 0.5087 GB, free: 13.76 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004135/0.4273, allocations: 2.996 MB / 0.5116 GB, free: 10.76 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0107/0.438, allocations: 5.848 MB / 0.5173 GB, free: 4.887 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04003/0.478, allocations: 20.69 MB / 0.5376 GB, free: 136 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.799e-06/0.478, allocations: 0 / 0.5376 GB, free: 136 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.145e-06/0.478, allocations: 0 / 0.5376 GB, free: 136 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006397/0.4787, allocations: 0 / 0.5376 GB, free: 136 kB / 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.446/0.9247, allocations: 12.01 MB / 0.5493 GB, free: 88.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.9247, allocations: 11.91 kB / 0.5493 GB, free: 88.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03091/0.9557, allocations: 5.6 MB / 0.5548 GB, free: 85.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01418/0.9698, allocations: 6.38 MB / 0.561 GB, free: 80.06 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007141/0.9706, allocations: 0.702 MB / 0.5617 GB, free: 79.36 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003961/0.9745, allocations: 0.9252 MB / 0.5626 GB, free: 78.45 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03409/1.009, allocations: 15.1 MB / 0.5773 GB, free: 63.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005528/1.009, allocations: 19.84 kB / 0.5773 GB, free: 63.28 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003469/1.013, allocations: 398.9 kB / 0.5777 GB, free: 62.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004637/1.013, allocations: 0.5194 MB / 0.5782 GB, free: 62.38 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02793/1.041, allocations: 13.78 MB / 0.5917 GB, free: 48.58 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07861/1.12, allocations: 46.3 MB / 0.6369 GB, free: 1.469 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02231/1.142, allocations: 8 MB / 0.6447 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008024/1.15, allocations: 2.794 MB / 0.6474 GB, free: 7.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006143/1.151, allocations: 118.8 kB / 0.6476 GB, free: 7.793 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001083/1.151, allocations: 73.58 kB / 0.6476 GB, free: 7.711 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 1.004e-05/1.151, allocations: 0 / 0.6476 GB, free: 7.711 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.05301/1.204, allocations: 14.75 MB / 0.662 GB, free: 8.914 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/1.204, allocations: 98.48 kB / 0.6621 GB, free: 8.805 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008657/1.212, allocations: 3.607 MB / 0.6656 GB, free: 5.203 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007815/1.213, allocations: 89.69 kB / 0.6657 GB, free: 5.109 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003599/1.217, allocations: 4.188 MB / 0.6698 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001866/1.219, allocations: 1.41 MB / 0.6712 GB, free: 15.46 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001978/1.221, allocations: 1.172 MB / 0.6723 GB, free: 14.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/1.221, allocations: 305.1 kB / 0.6726 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004624/1.225, allocations: 2.596 MB / 0.6752 GB, free: 11.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006854/1.232, allocations: 5.095 MB / 0.6801 GB, free: 5.105 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/1.245, allocations: 8.356 MB / 0.6883 GB, free: 11.56 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-05/1.245, allocations: 27.94 kB / 0.6883 GB, free: 11.54 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01788/1.263, allocations: 8.641 MB / 0.6968 GB, free: 2.863 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 7.351e-05/1.263, allocations: 43.94 kB / 0.6968 GB, free: 2.82 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/1.263, allocations: 84 kB / 0.6969 GB, free: 2.738 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002896/1.266, allocations: 0.8583 MB / 0.6977 GB, free: 1.879 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00583/1.272, allocations: 1.373 MB / 0.6991 GB, free: 0.5039 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01244/1.284, allocations: 7.585 MB / 0.7065 GB, free: 8.789 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004351/1.289, allocations: 327.5 kB / 0.7068 GB, free: 8.469 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009726/1.289, allocations: 308 kB / 0.7071 GB, free: 8.168 MB / 0.5138 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.006283/1.296, allocations: 3.509 MB / 0.7105 GB, free: 4.645 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001059/1.297, allocations: 433.2 kB / 0.7109 GB, free: 4.219 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01141/1.308, allocations: 5.961 MB / 0.7167 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.749e-05/1.308, allocations: 40 kB / 0.7168 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/1.308, allocations: 8 kB / 0.7168 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.063e-05/1.308, allocations: 23.86 kB / 0.7168 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02907/1.337, allocations: 14.94 MB / 0.7314 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/1.337, allocations: 15.92 kB / 0.7314 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002952/1.34, allocations: 0.6904 MB / 0.7321 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002296/1.343, allocations: 0.7095 MB / 0.7328 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003839/1.343, allocations: 91.97 kB / 0.7329 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/1.354, allocations: 6.618 MB / 0.7393 GB, free: 6.812 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/1.354, allocations: 4 kB / 0.7393 GB, free: 6.809 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2391/1.593, allocations: 8.775 MB / 0.7479 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002842/1.596, allocations: 0.8472 MB / 0.7487 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001358/1.597, allocations: 75.91 kB / 0.7488 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002851/1.6, allocations: 184.5 kB / 0.749 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005894/1.6, allocations: 284.6 kB / 0.7493 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002238/1.601, allocations: 116.1 kB / 0.7494 GB, free: 177.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003943/1.605, allocations: 2.425 MB / 0.7517 GB, free: 177.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.605, allocations: 3.969 kB / 0.7517 GB, free: 177.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005816/1.61, allocations: 1.543 MB / 0.7532 GB, free: 177.1 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.0005694/1.611, allocations: 263.8 kB / 0.7535 GB, free: 176.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008506/1.619, allocations: 6.284 MB / 0.7596 GB, free: 174.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.619, allocations: 0 / 0.7596 GB, free: 174.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003638/1.623, allocations: 2.75 MB / 0.7623 GB, free: 173.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004275/1.627, allocations: 0.9587 MB / 0.7633 GB, free: 173.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02324/1.651, allocations: 16.02 MB / 0.7789 GB, free: 165.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005547/1.656, allocations: 5.967 MB / 0.7847 GB, free: 160.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004465/1.661, allocations: 1.888 MB / 0.7866 GB, free: 159.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/1.662, allocations: 366.4 kB / 0.7869 GB, free: 159.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.422e-06/1.662, allocations: 0 / 0.7869 GB, free: 159.3 MB / 0.545 GB Notification: Performance of Templates: time 0.09505/1.757, allocations: 65.78 MB / 0.8512 GB, free: 95.4 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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: 8.262563281692564]