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.0009917/0.0009917, allocations: 75.77 kB / 22.45 MB, free: 2.094 MB / 18.57 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.001049/0.001049, allocations: 158.9 kB / 25.75 MB, free: 8.949 MB / 18.57 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 0.8503/0.8503, allocations: 158.6 MB / 187.5 MB, free: 2.945 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 251.2 MB, free: 7.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.988e-05/2.131e-05, allocations: 2.312 kB / 251.2 MB, free: 7.742 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02373/0.02375, allocations: 28.44 MB / 279.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01455/0.0383, allocations: 8.44 MB / 288 MB, free: 2.711 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003063/0.04136, allocations: 218.9 kB / 288.3 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008995/0.05035, allocations: 8.75 MB / 297 MB, free: 9.707 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006888/0.05724, allocations: 3.138 MB / 300.1 MB, free: 6.551 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003285/0.06053, allocations: 1.936 MB / 302.1 MB, free: 4.613 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01038/0.07091, allocations: 10.92 MB / 313 MB, free: 9.652 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0187/0.08961, allocations: 14.08 MB / 327.1 MB, free: 11.42 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009569/0.09918, allocations: 8.514 MB / 335.6 MB, free: 2.895 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007572/0.1068, allocations: 6.144 MB / 341.7 MB, free: 12.74 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002591/0.1093, allocations: 1.578 MB / 343.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002708/0.1121, allocations: 1.937 MB / 345.2 MB, free: 9.219 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002235/0.1143, allocations: 3.308 MB / 348.6 MB, free: 5.902 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004756/0.119, allocations: 4.148 MB / 352.7 MB, free: 1.746 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2225/0.3415, allocations: 10.35 MB / 363.1 MB, free: 44.11 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3415, allocations: 3.562 kB / 363.1 MB, free: 44.11 MB / 330.8 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3415, allocations: 0 / 363.1 MB, free: 44.11 MB / 330.8 MB Notification: Performance of Transformations before backend: time 0.0001023/0.3416, allocations: 0 / 363.1 MB, free: 44.11 MB / 330.8 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.0149/0.3565, allocations: 13.39 MB / 376.4 MB, free: 40.5 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3566, allocations: 14.59 kB / 376.5 MB, free: 40.5 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02698/0.3835, allocations: 10.52 MB / 387 MB, free: 39.54 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008518/0.3921, allocations: 5.493 MB / 392.5 MB, free: 37.22 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003069/0.3924, allocations: 0.7417 MB / 393.2 MB, free: 36.89 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001217/0.3936, allocations: 0.9859 MB / 394.2 MB, free: 36.56 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01246/0.406, allocations: 8.862 MB / 403.1 MB, free: 29.24 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000146/0.4062, allocations: 23.94 kB / 403.1 MB, free: 29.21 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006918/0.4069, allocations: 408.6 kB / 403.5 MB, free: 28.83 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002958/0.4072, allocations: 0.6142 MB / 404.1 MB, free: 28.21 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008578/0.4158, allocations: 5.241 MB / 409.3 MB, free: 22.96 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03557/0.4513, allocations: 40.74 MB / 450.1 MB, free: 14.11 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01113/0.4624, allocations: 11.47 MB / 461.5 MB, free: 5.43 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001918/0.4644, allocations: 1.56 MB / 463.1 MB, free: 3.859 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008121/0.4725, allocations: 5.93 MB / 469 MB, free: 14.07 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.209e-05/0.4725, allocations: 67.52 kB / 469.1 MB, free: 13.99 MB / 378.8 MB Notification: Performance of pre-optimization done (n=270): time 4.448e-06/0.4725, allocations: 0 / 469.1 MB, free: 13.99 MB / 378.8 MB Notification: Performance of matching and sorting (n=278): time 0.01261/0.4852, allocations: 7.988 MB / 477.1 MB, free: 5.949 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.4852, allocations: 81.59 kB / 477.2 MB, free: 5.855 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00365/0.4889, allocations: 3.916 MB / 481.1 MB, free: 1.957 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.489, allocations: 69.7 kB / 481.2 MB, free: 1.883 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002395/0.4914, allocations: 5.045 MB / 486.2 MB, free: 12.83 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005575/0.4919, allocations: 1.056 MB / 487.3 MB, free: 11.79 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001215/0.4931, allocations: 1.367 MB / 488.6 MB, free: 10.4 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 9.476e-05/0.4932, allocations: 480.8 kB / 489.1 MB, free: 9.93 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00157/0.4948, allocations: 0.8043 MB / 489.9 MB, free: 9.121 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003551/0.4984, allocations: 5.552 MB / 495.4 MB, free: 1.512 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007156/0.5055, allocations: 7.024 MB / 0.4907 GB, free: 8.805 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-05/0.5056, allocations: 32 kB / 0.4907 GB, free: 8.773 MB / 410.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01142/0.517, allocations: 5.631 MB / 0.4962 GB, free: 3.816 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.273e-05/0.517, allocations: 52 kB / 0.4963 GB, free: 3.766 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.701e-05/0.5171, allocations: 108 kB / 0.4964 GB, free: 3.66 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00267/0.5198, allocations: 0.8173 MB / 0.4972 GB, free: 2.844 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004027/0.5238, allocations: 1.4 MB / 0.4985 GB, free: 1.555 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1363/0.6602, allocations: 4.994 MB / 0.5034 GB, free: 141.2 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003566/0.6637, allocations: 352.1 kB / 0.5038 GB, free: 141.2 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008311/0.6646, allocations: 351.1 kB / 0.5041 GB, free: 141.2 MB / 410.8 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.002805/0.6674, allocations: 0.6068 MB / 0.5047 GB, free: 141 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009116/0.6683, allocations: 498.5 kB / 0.5052 GB, free: 141 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005001/0.6733, allocations: 2.925 MB / 0.508 GB, free: 140.8 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.6733, allocations: 34.38 kB / 0.508 GB, free: 140.8 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.301e-05/0.6733, allocations: 10.81 kB / 0.5081 GB, free: 140.8 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.132e-05/0.6733, allocations: 12.19 kB / 0.5081 GB, free: 140.8 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/0.6877, allocations: 9.255 MB / 0.5171 GB, free: 140.1 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.6877, allocations: 7.75 kB / 0.5171 GB, free: 140.1 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.6889, allocations: 0.5193 MB / 0.5176 GB, free: 140.1 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.6903, allocations: 0.6694 MB / 0.5183 GB, free: 140 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001571/0.6905, allocations: 65.89 kB / 0.5183 GB, free: 140 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003996/0.6945, allocations: 4.527 MB / 0.5228 GB, free: 138.1 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.6945, allocations: 5.75 kB / 0.5228 GB, free: 138.1 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004944/0.6994, allocations: 3.594 MB / 0.5263 GB, free: 137.4 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/0.7006, allocations: 0.6849 MB / 0.5269 GB, free: 137.4 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004112/0.7011, allocations: 56.64 kB / 0.527 GB, free: 137.4 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000965/0.702, allocations: 171.4 kB / 0.5272 GB, free: 137.4 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003058/0.7023, allocations: 211.8 kB / 0.5274 GB, free: 137.4 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.7024, allocations: 88.91 kB / 0.5274 GB, free: 137.4 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.002351/0.7048, allocations: 1.721 MB / 0.5291 GB, free: 137.2 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7048, allocations: 0 / 0.5291 GB, free: 137.2 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.0046/0.7094, allocations: 1.546 MB / 0.5306 GB, free: 137.2 MB / 410.8 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.0004581/0.7098, allocations: 222.7 kB / 0.5308 GB, free: 137.1 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.005381/0.7152, allocations: 3.794 MB / 0.5346 GB, free: 135.6 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.7152, allocations: 0 / 0.5346 GB, free: 135.6 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001884/0.7171, allocations: 1.551 MB / 0.5361 GB, free: 134.2 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003107/0.7202, allocations: 0.9133 MB / 0.537 GB, free: 133.5 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0182/0.7384, allocations: 14.04 MB / 0.5507 GB, free: 120.5 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002297/0.7407, allocations: 2.568 MB / 0.5532 GB, free: 118.6 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003716/0.7444, allocations: 1.672 MB / 0.5548 GB, free: 117.6 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007617/0.7452, allocations: 318.6 kB / 0.5551 GB, free: 117.3 MB / 410.8 MB Notification: Performance of SimCode: time 2.054e-06/0.7452, allocations: 0 / 0.5551 GB, free: 117.3 MB / 410.8 MB Notification: Performance of Templates: time 0.1056/0.8508, allocations: 50.42 MB / 0.6044 GB, free: 67.65 MB / 410.8 MB " [Timeout remaining time 659] 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.52896016696468]