Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001467/0.001467, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001532/0.001532, allocations: 216.1 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.477/1.477, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 51.92 kB / 347.7 MB, free: 9.336 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2443, allocations: 49.16 MB / 396.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03146/0.2757, allocations: 25.11 MB / 422 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02266/0.2984, allocations: 8.231 MB / 430.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006852/0.3052, allocations: 218.4 kB / 430.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02178/0.327, allocations: 7.674 MB / 438.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01234/0.3394, allocations: 3.062 MB / 441.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007336/0.3467, allocations: 1.887 MB / 443.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01747/0.3642, allocations: 10.58 MB / 453.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03145/0.3956, allocations: 14.02 MB / 467.7 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01079/0.4064, allocations: 5.747 MB / 473.4 MB, free: 6.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01188/0.4183, allocations: 6.178 MB / 479.6 MB, free: 136 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004597/0.4229, allocations: 1.578 MB / 481.2 MB, free: 14.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006845/0.4297, allocations: 1.925 MB / 483.1 MB, free: 12.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005529/0.4352, allocations: 3.195 MB / 486.3 MB, free: 9.426 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0104/0.4456, allocations: 4.767 MB / 491 MB, free: 4.641 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02997/0.4756, allocations: 21.33 MB / 0.5004 GB, free: 15.24 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4756, allocations: 4 kB / 0.5004 GB, free: 15.24 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4756, allocations: 0 / 0.5004 GB, free: 15.24 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005406/0.4762, allocations: 0 / 0.5004 GB, free: 15.24 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03702/0.5132, allocations: 12.59 MB / 0.5127 GB, free: 2.551 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.5132, allocations: 8.031 kB / 0.5127 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04817/0.5614, allocations: 8.647 MB / 0.5211 GB, free: 9.879 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01574/0.5771, allocations: 5.978 MB / 0.527 GB, free: 3.832 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008644/0.578, allocations: 0.7464 MB / 0.5277 GB, free: 3.082 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004343/0.5823, allocations: 0.9725 MB / 0.5286 GB, free: 2.109 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04252/0.6249, allocations: 16.71 MB / 0.545 GB, free: 1.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003254/0.6252, allocations: 15.91 kB / 0.545 GB, free: 1.254 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002782/0.628, allocations: 412 kB / 0.5454 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007031/0.6287, allocations: 0.6067 MB / 0.546 GB, free: 248 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03577/0.6644, allocations: 15.89 MB / 0.5615 GB, free: 340 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4304/1.095, allocations: 44.36 MB / 0.6048 GB, free: 104.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01728/1.112, allocations: 12.1 MB / 0.6166 GB, free: 99.89 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003793/1.116, allocations: 3.141 MB / 0.6197 GB, free: 97.55 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01312/1.129, allocations: 8.372 MB / 0.6279 GB, free: 89.39 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/1.129, allocations: 68.62 kB / 0.6279 GB, free: 89.31 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.36e-06/1.129, allocations: 0 / 0.6279 GB, free: 89.31 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02196/1.151, allocations: 12.81 MB / 0.6404 GB, free: 76.83 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/1.151, allocations: 81.59 kB / 0.6405 GB, free: 76.74 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004642/1.156, allocations: 4.075 MB / 0.6445 GB, free: 72.82 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001649/1.156, allocations: 65.7 kB / 0.6446 GB, free: 72.75 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001829/1.158, allocations: 4.811 MB / 0.6493 GB, free: 67.93 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005955/1.158, allocations: 1.037 MB / 0.6503 GB, free: 66.91 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001329/1.16, allocations: 1.246 MB / 0.6515 GB, free: 65.65 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.383e-05/1.16, allocations: 305.1 kB / 0.6518 GB, free: 65.35 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003055/1.163, allocations: 2.444 MB / 0.6542 GB, free: 62.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004192/1.167, allocations: 5.628 MB / 0.6597 GB, free: 55.73 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007637/1.175, allocations: 8.678 MB / 0.6681 GB, free: 45.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.308e-05/1.175, allocations: 32 kB / 0.6682 GB, free: 45.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01153/1.186, allocations: 8.728 MB / 0.6767 GB, free: 36.67 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.95e-05/1.186, allocations: 52 kB / 0.6767 GB, free: 36.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/1.186, allocations: 112 kB / 0.6768 GB, free: 36.51 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002034/1.188, allocations: 0.8488 MB / 0.6777 GB, free: 35.66 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003961/1.192, allocations: 1.4 MB / 0.679 GB, free: 34.26 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008306/1.201, allocations: 7.234 MB / 0.6861 GB, free: 26.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004197/1.205, allocations: 351.5 kB / 0.6864 GB, free: 26.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005633/1.205, allocations: 352 kB / 0.6868 GB, free: 26.23 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004899/1.21, allocations: 3.673 MB / 0.6904 GB, free: 22.54 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008097/1.211, allocations: 409.4 kB / 0.6907 GB, free: 22.14 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007175/1.218, allocations: 5.042 MB / 0.6957 GB, free: 17.04 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/1.218, allocations: 32 kB / 0.6957 GB, free: 17.01 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/1.218, allocations: 8 kB / 0.6957 GB, free: 17 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.202e-05/1.218, allocations: 15.95 kB / 0.6957 GB, free: 16.99 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01597/1.234, allocations: 10.35 MB / 0.7058 GB, free: 6.551 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.659e-06/1.234, allocations: 0 / 0.7058 GB, free: 6.551 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001989/1.236, allocations: 0.5266 MB / 0.7063 GB, free: 6.023 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001698/1.238, allocations: 0.6833 MB / 0.707 GB, free: 5.336 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000168/1.238, allocations: 63.98 kB / 0.7071 GB, free: 5.273 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007807/1.246, allocations: 6.392 MB / 0.7133 GB, free: 14.78 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/1.246, allocations: 15.88 kB / 0.7133 GB, free: 14.76 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01245/1.258, allocations: 7.305 MB / 0.7205 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002466/1.261, allocations: 0.7393 MB / 0.7212 GB, free: 6.57 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005809/1.262, allocations: 56.06 kB / 0.7212 GB, free: 6.516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/1.263, allocations: 163.8 kB / 0.7214 GB, free: 6.355 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000493/1.264, allocations: 213.8 kB / 0.7216 GB, free: 6.145 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003199/1.264, allocations: 91.97 kB / 0.7217 GB, free: 6.055 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004419/1.269, allocations: 2.54 MB / 0.7242 GB, free: 3.535 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.269, allocations: 0 / 0.7242 GB, free: 3.535 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00602/1.275, allocations: 1.543 MB / 0.7257 GB, free: 1.992 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005388/1.275, allocations: 230.6 kB / 0.7259 GB, free: 1.754 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01026/1.285, allocations: 5.868 MB / 0.7316 GB, free: 11.87 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/1.285, allocations: 0 / 0.7316 GB, free: 11.87 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.003934/1.289, allocations: 2.278 MB / 0.7338 GB, free: 9.574 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004018/1.293, allocations: 0.8775 MB / 0.7347 GB, free: 8.699 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/1.321, allocations: 16.47 MB / 0.7508 GB, free: 8.121 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007494/1.329, allocations: 5.758 MB / 0.7564 GB, free: 2.32 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005504/1.334, allocations: 1.93 MB / 0.7583 GB, free: 392 kB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009918/1.335, allocations: 319.4 kB / 0.7586 GB, free: 72 kB / 0.5138 GB Notification: Performance of SimCode: time 1.643e-06/1.335, allocations: 0 / 0.7586 GB, free: 72 kB / 0.5138 GB Notification: Performance of Templates: time 0.2855/1.621, allocations: 60.22 MB / 0.8174 GB, free: 127.2 MB / 0.5138 GB " [Timeout remaining time 658] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.609154716134071]