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.001207/0.001207, allocations: 84.98 kB / 22.99 MB, free: 1.508 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.001015/0.001015, allocations: 181.2 kB / 26.4 MB, free: 7.992 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.8101/0.8101, allocations: 158.6 MB / 188.3 MB, free: 2.82 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.152e-06/1.152e-06, allocations: 3.938 kB / 252.3 MB, free: 7.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.102e-05/1.217e-05, allocations: 6.25 kB / 252.3 MB, free: 7.199 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01875/0.01877, allocations: 27.36 MB / 279.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01271/0.03148, allocations: 8.412 MB / 288.1 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003212/0.03469, allocations: 218.9 kB / 288.3 MB, free: 3.059 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008769/0.04346, allocations: 8.496 MB / 296.8 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006024/0.04948, allocations: 3.119 MB / 299.9 MB, free: 7.387 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002595/0.05208, allocations: 1.921 MB / 301.8 MB, free: 5.465 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007794/0.05987, allocations: 10.92 MB / 312.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01275/0.07262, allocations: 14.08 MB / 326.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007496/0.08011, allocations: 8.569 MB / 335.4 MB, free: 3.684 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006059/0.08617, allocations: 6.254 MB / 341.7 MB, free: 13.42 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001712/0.08788, allocations: 1.57 MB / 343.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002213/0.0901, allocations: 1.941 MB / 345.2 MB, free: 9.902 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001935/0.09203, allocations: 3.284 MB / 348.5 MB, free: 6.609 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003981/0.09601, allocations: 4.14 MB / 352.6 MB, free: 2.461 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1306/0.2266, allocations: 10.33 MB / 362.9 MB, free: 44.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2266, allocations: 3.656 kB / 362.9 MB, free: 44.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2266, allocations: 1.844 kB / 362.9 MB, free: 44.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005149/0.2272, allocations: 0 / 362.9 MB, free: 44.59 MB / 330.7 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.01964/0.2468, allocations: 12.88 MB / 375.8 MB, free: 40.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2468, allocations: 9.75 kB / 375.8 MB, free: 40.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0229/0.2697, allocations: 7.661 MB / 383.5 MB, free: 40.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008007/0.2777, allocations: 5.057 MB / 388.5 MB, free: 39.39 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004386/0.2782, allocations: 0.7407 MB / 389.3 MB, free: 39.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002129/0.2803, allocations: 0.9841 MB / 390.3 MB, free: 38.81 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01546/0.2958, allocations: 8.101 MB / 398.4 MB, free: 34.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002158/0.296, allocations: 19.55 kB / 398.4 MB, free: 34.83 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009733/0.297, allocations: 413.7 kB / 398.8 MB, free: 34.44 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003637/0.2973, allocations: 0.6106 MB / 399.4 MB, free: 33.83 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009246/0.3066, allocations: 4.089 MB / 403.5 MB, free: 29.71 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04946/0.356, allocations: 40.12 MB / 443.6 MB, free: 6.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01037/0.3664, allocations: 10 MB / 453.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001951/0.3684, allocations: 1.339 MB / 454.9 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008785/0.3771, allocations: 5.612 MB / 460.6 MB, free: 8.895 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.034e-05/0.3772, allocations: 63.52 kB / 460.6 MB, free: 8.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=270): time 3.967e-06/0.3772, allocations: 0 / 460.6 MB, free: 8.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=278): time 0.01353/0.3907, allocations: 6.466 MB / 467.1 MB, free: 2.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.3908, allocations: 81.59 kB / 467.2 MB, free: 2.227 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005091/0.3959, allocations: 3.833 MB / 471 MB, free: 14.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003169/0.3962, allocations: 75.89 kB / 471.1 MB, free: 14.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003002/0.3992, allocations: 5.077 MB / 476.1 MB, free: 9.977 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001004/0.4002, allocations: 1.066 MB / 477.2 MB, free: 8.969 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001774/0.402, allocations: 1.385 MB / 478.6 MB, free: 7.684 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4021, allocations: 484.3 kB / 479.1 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.4033, allocations: 0.6207 MB / 479.7 MB, free: 6.586 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003749/0.407, allocations: 5.396 MB / 485.1 MB, free: 15.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00627/0.4133, allocations: 6.743 MB / 491.8 MB, free: 7.016 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.996e-05/0.4134, allocations: 32 kB / 491.9 MB, free: 6.984 MB / 394.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.00911/0.4225, allocations: 5.167 MB / 497 MB, free: 2.496 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.23e-05/0.4226, allocations: 52 kB / 497.1 MB, free: 2.445 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/0.4227, allocations: 112 kB / 497.2 MB, free: 2.336 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002106/0.4248, allocations: 0.7799 MB / 498 MB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00352/0.4283, allocations: 1.311 MB / 499.3 MB, free: 372 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1412/0.5695, allocations: 4.76 MB / 0.4922 GB, free: 99.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003937/0.5735, allocations: 270.3 kB / 0.4925 GB, free: 99.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008177/0.5743, allocations: 295.2 kB / 0.4928 GB, free: 99.92 MB / 394.7 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.002445/0.5767, allocations: 0.6133 MB / 0.4934 GB, free: 99.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007959/0.5775, allocations: 0.4898 MB / 0.4938 GB, free: 99.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003751/0.5813, allocations: 2.594 MB / 0.4964 GB, free: 99.55 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/0.5813, allocations: 28.19 kB / 0.4964 GB, free: 99.55 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.5813, allocations: 10.59 kB / 0.4964 GB, free: 99.55 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/0.5813, allocations: 19.84 kB / 0.4964 GB, free: 99.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/0.5929, allocations: 6.865 MB / 0.5031 GB, free: 98.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/0.5929, allocations: 6.562 kB / 0.5031 GB, free: 98.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.594, allocations: 446.8 kB / 0.5036 GB, free: 98.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.5954, allocations: 0.6324 MB / 0.5042 GB, free: 98.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/0.5956, allocations: 63.64 kB / 0.5042 GB, free: 98.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003695/0.5993, allocations: 4.321 MB / 0.5085 GB, free: 96.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.5993, allocations: 9.281 kB / 0.5085 GB, free: 96.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004458/0.6038, allocations: 3.167 MB / 0.5116 GB, free: 96.15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.6048, allocations: 0.6373 MB / 0.5122 GB, free: 95.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003057/0.6051, allocations: 54.06 kB / 0.5122 GB, free: 95.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008012/0.6059, allocations: 89.52 kB / 0.5123 GB, free: 95.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/0.6061, allocations: 206.8 kB / 0.5125 GB, free: 95.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.6063, allocations: 66.95 kB / 0.5126 GB, free: 95.92 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001691/0.6079, allocations: 1.592 MB / 0.5141 GB, free: 95.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6079, allocations: 0 / 0.5141 GB, free: 95.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004212/0.6122, allocations: 1.537 MB / 0.5156 GB, free: 95.73 MB / 394.7 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.0003791/0.6125, allocations: 231.4 kB / 0.5159 GB, free: 95.63 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004111/0.6166, allocations: 3.482 MB / 0.5193 GB, free: 95.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.6167, allocations: 0 / 0.5193 GB, free: 95.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.6185, allocations: 1.429 MB / 0.5207 GB, free: 94.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002776/0.6212, allocations: 0.9075 MB / 0.5215 GB, free: 94.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0182/0.6394, allocations: 13.92 MB / 0.5351 GB, free: 82.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/0.6417, allocations: 2.575 MB / 0.5377 GB, free: 80.79 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002066/0.6438, allocations: 0.6829 MB / 0.5383 GB, free: 80.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00136/0.6452, allocations: 0.955 MB / 0.5393 GB, free: 79.42 MB / 394.7 MB Notification: Performance of SimCode: time 1.513e-06/0.6452, allocations: 0 / 0.5393 GB, free: 79.42 MB / 394.7 MB Notification: Performance of Templates: time 0.07198/0.7171, allocations: 55.82 MB / 0.5938 GB, free: 24.14 MB / 394.7 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.532612172886729]