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.001499/0.001499, allocations: 106.3 kB / 21.1 MB, free: 0.7734 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.001713/0.001713, allocations: 225 kB / 24.39 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.331/1.331, allocations: 230.5 MB / 258 MB, free: 8.102 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.001831/0.001831, allocations: 67.88 kB / 378.7 MB, free: 2.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2197, allocations: 53.37 MB / 432.1 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03141/0.2511, allocations: 28.51 MB / 460.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01645/0.2675, allocations: 8.512 MB / 469.1 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004695/0.2722, allocations: 250.8 kB / 469.4 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01841/0.2906, allocations: 8.255 MB / 477.6 MB, free: 9.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008832/0.2995, allocations: 2.905 MB / 480.5 MB, free: 6.383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005172/0.3046, allocations: 1.932 MB / 482.5 MB, free: 4.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01364/0.3183, allocations: 10.1 MB / 492.6 MB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02094/0.3392, allocations: 14.05 MB / 0.4947 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007255/0.3465, allocations: 5.49 MB / 0.5001 GB, free: 6.629 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009522/0.356, allocations: 6.152 MB / 0.5061 GB, free: 468 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003707/0.3597, allocations: 1.543 MB / 0.5076 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004221/0.3639, allocations: 1.918 MB / 0.5095 GB, free: 13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003035/0.3669, allocations: 2.985 MB / 0.5124 GB, free: 10 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009923/0.3769, allocations: 5.86 MB / 0.5181 GB, free: 4.121 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4043/0.7812, allocations: 20.78 MB / 0.5384 GB, free: 37.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.7812, allocations: 1.516 kB / 0.5384 GB, free: 37.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.7812, allocations: 0 / 0.5384 GB, free: 37.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004767/0.7817, allocations: 0.5 kB / 0.5384 GB, free: 37.89 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.03081/0.8125, allocations: 12.01 MB / 0.5501 GB, free: 34.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.8125, allocations: 9.625 kB / 0.5501 GB, free: 34.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02679/0.8393, allocations: 5.6 MB / 0.5556 GB, free: 34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01154/0.8509, allocations: 6.383 MB / 0.5618 GB, free: 33.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000455/0.8513, allocations: 0.7004 MB / 0.5625 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002496/0.8538, allocations: 0.9295 MB / 0.5634 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02777/0.8816, allocations: 15.25 MB / 0.5783 GB, free: 25.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002171/0.8818, allocations: 23.22 kB / 0.5784 GB, free: 25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001125/0.883, allocations: 394.8 kB / 0.5787 GB, free: 24.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003064/0.8833, allocations: 0.5116 MB / 0.5792 GB, free: 24.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01922/0.9025, allocations: 13.77 MB / 0.5927 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06821/0.9707, allocations: 46.31 MB / 0.6379 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01292/0.9836, allocations: 7.999 MB / 0.6457 GB, free: 5.102 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004035/0.9876, allocations: 2.803 MB / 0.6484 GB, free: 2.301 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002799/0.9879, allocations: 123.8 kB / 0.6486 GB, free: 2.203 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.108e-05/0.988, allocations: 77.31 kB / 0.6486 GB, free: 2.121 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 4.839e-06/0.988, allocations: 0 / 0.6486 GB, free: 2.121 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.02953/1.018, allocations: 14.74 MB / 0.663 GB, free: 3.379 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.581e-05/1.018, allocations: 98.48 kB / 0.6631 GB, free: 3.27 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005546/1.023, allocations: 3.607 MB / 0.6667 GB, free: 15.67 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003035/1.023, allocations: 85.7 kB / 0.6667 GB, free: 15.58 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003107/1.027, allocations: 4.194 MB / 0.6708 GB, free: 11.38 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001197/1.028, allocations: 1.41 MB / 0.6722 GB, free: 9.984 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001668/1.029, allocations: 1.172 MB / 0.6734 GB, free: 8.801 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001137/1.03, allocations: 301.1 kB / 0.6736 GB, free: 8.504 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003749/1.033, allocations: 2.6 MB / 0.6762 GB, free: 5.898 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005653/1.039, allocations: 5.113 MB / 0.6812 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/1.049, allocations: 8.354 MB / 0.6893 GB, free: 6.449 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.293e-05/1.049, allocations: 24 kB / 0.6894 GB, free: 6.426 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01371/1.063, allocations: 8.651 MB / 0.6978 GB, free: 14.27 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.788e-05/1.063, allocations: 44 kB / 0.6978 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001158/1.063, allocations: 80.88 kB / 0.6979 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/1.065, allocations: 0.8498 MB / 0.6988 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004235/1.07, allocations: 1.373 MB / 0.7001 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01091/1.081, allocations: 7.585 MB / 0.7075 GB, free: 4.371 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004113/1.085, allocations: 327.5 kB / 0.7078 GB, free: 4.051 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004893/1.085, allocations: 319.9 kB / 0.7081 GB, free: 3.738 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.005613/1.091, allocations: 3.507 MB / 0.7115 GB, free: 328 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/1.092, allocations: 425.3 kB / 0.7119 GB, free: 15.9 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/1.102, allocations: 5.967 MB / 0.7178 GB, free: 9.926 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.228e-05/1.102, allocations: 40 kB / 0.7178 GB, free: 9.887 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/1.102, allocations: 12 kB / 0.7178 GB, free: 9.875 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.422e-05/1.102, allocations: 19.92 kB / 0.7178 GB, free: 9.855 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02342/1.126, allocations: 14.95 MB / 0.7324 GB, free: 10.98 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/1.126, allocations: 8 kB / 0.7324 GB, free: 10.98 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002601/1.128, allocations: 0.6961 MB / 0.7331 GB, free: 10.32 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/1.13, allocations: 0.7056 MB / 0.7338 GB, free: 9.609 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002262/1.13, allocations: 95.97 kB / 0.7339 GB, free: 9.516 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009343/1.14, allocations: 6.618 MB / 0.7404 GB, free: 2.816 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/1.14, allocations: 7.938 kB / 0.7404 GB, free: 2.809 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01288/1.153, allocations: 8.77 MB / 0.7489 GB, free: 9.945 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002088/1.155, allocations: 0.8601 MB / 0.7498 GB, free: 9.082 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004916/1.155, allocations: 75.98 kB / 0.7499 GB, free: 9.008 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/1.157, allocations: 179.8 kB / 0.75 GB, free: 8.832 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004934/1.157, allocations: 281.8 kB / 0.7503 GB, free: 8.559 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002566/1.158, allocations: 120 kB / 0.7504 GB, free: 8.441 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003653/1.161, allocations: 2.416 MB / 0.7528 GB, free: 6.039 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.161, allocations: 0 / 0.7528 GB, free: 6.039 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004823/1.166, allocations: 1.551 MB / 0.7543 GB, free: 4.488 MB / 0.5919 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.0005124/1.167, allocations: 264.3 kB / 0.7545 GB, free: 4.262 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.2095/1.376, allocations: 6.275 MB / 0.7607 GB, free: 235.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.376, allocations: 0 / 0.7607 GB, free: 235.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004308/1.38, allocations: 2.747 MB / 0.7633 GB, free: 235.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004169/1.385, allocations: 0.9692 MB / 0.7643 GB, free: 235.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02386/1.408, allocations: 16.01 MB / 0.7799 GB, free: 228.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005013/1.413, allocations: 5.97 MB / 0.7858 GB, free: 224.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.003911/1.417, allocations: 1.882 MB / 0.7876 GB, free: 223.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000846/1.418, allocations: 365.8 kB / 0.7879 GB, free: 222.9 MB / 0.5919 GB Notification: Performance of SimCode: time 9.31e-07/1.418, allocations: 0 / 0.7879 GB, free: 222.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.0851/1.503, allocations: 65.79 MB / 0.8522 GB, free: 159 MB / 0.5919 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: 7.321851329877973]