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.001058/0.001058, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001515/0.001515, allocations: 161.2 kB / 25.6 MB, free: 8.895 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.9136/0.9136, allocations: 158.6 MB / 187.5 MB, free: 2.816 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.462e-06/1.462e-06, allocations: 0 / 251.5 MB, free: 7.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.225e-05/2.371e-05, allocations: 2.312 kB / 251.5 MB, free: 7.207 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02035/0.02038, allocations: 27.37 MB / 278.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.03475, allocations: 8.412 MB / 287.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004297/0.03905, allocations: 214.9 kB / 287.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01001/0.04905, allocations: 8.5 MB / 296 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008135/0.05719, allocations: 3.138 MB / 299.1 MB, free: 7.367 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003784/0.06097, allocations: 1.897 MB / 301 MB, free: 5.465 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.07129, allocations: 10.93 MB / 312 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01821/0.0895, allocations: 14.08 MB / 326.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01102/0.1005, allocations: 8.569 MB / 334.6 MB, free: 3.684 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007549/0.1081, allocations: 6.25 MB / 340.9 MB, free: 13.42 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003244/0.1113, allocations: 1.574 MB / 342.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004736/0.1161, allocations: 1.929 MB / 344.4 MB, free: 9.914 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003449/0.1195, allocations: 3.3 MB / 347.7 MB, free: 6.605 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006633/0.1261, allocations: 4.136 MB / 351.8 MB, free: 2.461 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1325/0.2586, allocations: 10.33 MB / 362.1 MB, free: 41.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.2587, allocations: 0 / 362.1 MB, free: 41.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2587, allocations: 0 / 362.1 MB, free: 41.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004277/0.2591, allocations: 0 / 362.1 MB, free: 41.29 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.02243/0.2815, allocations: 12.88 MB / 375 MB, free: 37.69 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.2816, allocations: 10.09 kB / 375 MB, free: 37.69 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02256/0.3041, allocations: 7.66 MB / 382.7 MB, free: 36.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008535/0.3126, allocations: 5.057 MB / 387.7 MB, free: 36.1 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006115/0.3133, allocations: 0.7468 MB / 388.5 MB, free: 36.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0035/0.3168, allocations: 0.9781 MB / 389.5 MB, free: 36.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01982/0.3366, allocations: 8.105 MB / 397.6 MB, free: 33.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002701/0.3369, allocations: 23.06 kB / 397.6 MB, free: 33.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00154/0.3384, allocations: 413 kB / 398 MB, free: 33.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000337/0.3387, allocations: 0.6067 MB / 398.6 MB, free: 32.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01173/0.3505, allocations: 4.095 MB / 402.7 MB, free: 28.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05309/0.4035, allocations: 40.11 MB / 442.8 MB, free: 5.332 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01076/0.4143, allocations: 10.01 MB / 452.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00195/0.4162, allocations: 1.345 MB / 454.2 MB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008519/0.4248, allocations: 5.636 MB / 459.8 MB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.4248, allocations: 63.52 kB / 459.9 MB, free: 7.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=270): time 3.797e-06/0.4248, allocations: 0 / 459.9 MB, free: 7.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=278): time 0.01245/0.4373, allocations: 6.457 MB / 466.3 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.4373, allocations: 81.59 kB / 466.4 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003984/0.4413, allocations: 3.832 MB / 470.2 MB, free: 13.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001883/0.4415, allocations: 69.7 kB / 470.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002661/0.4441, allocations: 5.08 MB / 475.4 MB, free: 8.551 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007197/0.4449, allocations: 1.069 MB / 476.4 MB, free: 7.539 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001292/0.4462, allocations: 1.384 MB / 477.8 MB, free: 6.258 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.932e-05/0.4463, allocations: 476.8 kB / 478.3 MB, free: 5.789 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000881/0.4471, allocations: 0.6246 MB / 478.9 MB, free: 5.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00308/0.4502, allocations: 5.396 MB / 484.3 MB, free: 13.86 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005319/0.4555, allocations: 6.746 MB / 491.1 MB, free: 5.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-05/0.4556, allocations: 32 kB / 491.1 MB, free: 5.559 MB / 394.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.00679/0.4624, allocations: 5.165 MB / 496.3 MB, free: 1.074 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.757e-05/0.4625, allocations: 52 kB / 496.3 MB, free: 1.023 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/0.4626, allocations: 108 kB / 496.4 MB, free: 0.918 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001545/0.4641, allocations: 0.7764 MB / 497.2 MB, free: 148 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002548/0.4667, allocations: 1.317 MB / 498.5 MB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004918/0.4716, allocations: 4.769 MB / 0.4915 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003262/0.4748, allocations: 271.7 kB / 0.4917 GB, free: 9.914 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006182/0.4754, allocations: 300 kB / 0.492 GB, free: 9.621 MB / 410.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.002242/0.4777, allocations: 0.5925 MB / 0.4926 GB, free: 9.129 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007893/0.4785, allocations: 0.4973 MB / 0.4931 GB, free: 8.629 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00366/0.4821, allocations: 2.615 MB / 0.4956 GB, free: 6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.4822, allocations: 35.17 kB / 0.4957 GB, free: 5.969 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.4822, allocations: 8 kB / 0.4957 GB, free: 5.961 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/0.4822, allocations: 11.95 kB / 0.4957 GB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1418/0.624, allocations: 6.869 MB / 0.5024 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.24e-05/0.624, allocations: 3.438 kB / 0.5024 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/0.6261, allocations: 448.8 kB / 0.5028 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/0.6279, allocations: 0.6237 MB / 0.5034 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003906/0.6283, allocations: 70.47 kB / 0.5035 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003716/0.6321, allocations: 4.316 MB / 0.5077 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.6321, allocations: 6.844 kB / 0.5077 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004261/0.6363, allocations: 3.174 MB / 0.5108 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/0.6375, allocations: 0.6251 MB / 0.5114 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003736/0.6379, allocations: 59.06 kB / 0.5115 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008054/0.6387, allocations: 79.42 kB / 0.5116 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002981/0.639, allocations: 213.9 kB / 0.5118 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.6391, allocations: 70.2 kB / 0.5119 GB, free: 113.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001893/0.641, allocations: 1.586 MB / 0.5134 GB, free: 113.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.641, allocations: 0.5469 kB / 0.5134 GB, free: 113.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004069/0.645, allocations: 1.539 MB / 0.5149 GB, free: 113.7 MB / 410.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.000429/0.6455, allocations: 226 kB / 0.5151 GB, free: 113.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00419/0.6497, allocations: 3.489 MB / 0.5185 GB, free: 113.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.6497, allocations: 2.906 kB / 0.5185 GB, free: 113.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.6511, allocations: 1.424 MB / 0.5199 GB, free: 113 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002596/0.6537, allocations: 0.897 MB / 0.5208 GB, free: 112.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/0.6714, allocations: 13.93 MB / 0.5344 GB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002099/0.6735, allocations: 2.566 MB / 0.5369 GB, free: 106.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001965/0.6754, allocations: 0.6906 MB / 0.5376 GB, free: 105.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/0.6768, allocations: 0.9524 MB / 0.5385 GB, free: 105.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.874e-06/0.6768, allocations: 0 / 0.5385 GB, free: 105.1 MB / 410.7 MB Notification: Performance of Templates: time 0.07137/0.7482, allocations: 54.89 MB / 0.5921 GB, free: 54.2 MB / 410.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.221858949866146]