Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001265/0.001265, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.004128/0.004128, allocations: 164 kB / 24.7 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8753/0.8753, allocations: 177.1 MB / 205 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 325.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.918e-05/2.112e-05, allocations: 10.28 kB / 325.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01872/0.01875, allocations: 24.67 MB / 350.5 MB, free: 6.609 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.03386, allocations: 8.174 MB / 358.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004335/0.03819, allocations: 250.8 kB / 359 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008994/0.04719, allocations: 8.051 MB / 367 MB, free: 6.09 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00647/0.05366, allocations: 2.906 MB / 369.9 MB, free: 3.172 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002856/0.05651, allocations: 1.858 MB / 371.8 MB, free: 1.316 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008706/0.06522, allocations: 10.44 MB / 382.2 MB, free: 6.84 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01333/0.07855, allocations: 13.9 MB / 396.1 MB, free: 8.801 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008337/0.08688, allocations: 8.117 MB / 404.2 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005301/0.09218, allocations: 5.263 MB / 409.5 MB, free: 11.4 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001529/0.09371, allocations: 1.539 MB / 411 MB, free: 9.859 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002503/0.09622, allocations: 1.925 MB / 413 MB, free: 7.934 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001499/0.09772, allocations: 3.039 MB / 416 MB, free: 4.887 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003925/0.1016, allocations: 3.914 MB / 419.9 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01629/0.1179, allocations: 20.94 MB / 440.9 MB, free: 11.96 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.341e-06/0.1179, allocations: 0 / 440.9 MB, free: 11.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1179, allocations: 4 kB / 440.9 MB, free: 11.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004819/0.1184, allocations: 0 / 440.9 MB, free: 11.96 MB / 410.7 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.3032/0.4216, allocations: 11.91 MB / 452.8 MB, free: 103.5 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.4216, allocations: 9.5 kB / 452.8 MB, free: 103.5 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0157/0.4373, allocations: 5.606 MB / 458.4 MB, free: 103.1 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007728/0.445, allocations: 6.383 MB / 464.8 MB, free: 98.3 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002187/0.4453, allocations: 0.7003 MB / 465.5 MB, free: 97.61 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0012/0.4465, allocations: 0.933 MB / 466.4 MB, free: 96.7 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/0.461, allocations: 15.24 MB / 481.6 MB, free: 81.36 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001401/0.4611, allocations: 19.83 kB / 481.7 MB, free: 81.34 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005892/0.4617, allocations: 395.4 kB / 482.1 MB, free: 80.96 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002259/0.4619, allocations: 0.5116 MB / 482.6 MB, free: 80.45 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01246/0.4744, allocations: 13.72 MB / 496.3 MB, free: 66.7 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03475/0.5092, allocations: 41.35 MB / 0.525 GB, free: 25.01 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006696/0.5159, allocations: 7.987 MB / 0.5328 GB, free: 18.26 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002151/0.518, allocations: 2.792 MB / 0.5356 GB, free: 15.47 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001748/0.5182, allocations: 94.94 kB / 0.5356 GB, free: 15.38 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.5182, allocations: 73.58 kB / 0.5357 GB, free: 15.3 MB / 410.8 MB Notification: Performance of pre-optimization done (n=384): time 5.54e-06/0.5182, allocations: 4 kB / 0.5357 GB, free: 15.29 MB / 410.8 MB Notification: Performance of matching and sorting (n=392): time 0.0164/0.5346, allocations: 14.69 MB / 0.5501 GB, free: 0.7109 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.5347, allocations: 94.48 kB / 0.5502 GB, free: 0.6055 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004133/0.5388, allocations: 3.551 MB / 0.5536 GB, free: 13.05 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002271/0.539, allocations: 89.7 kB / 0.5537 GB, free: 12.96 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002107/0.5411, allocations: 4.171 MB / 0.5578 GB, free: 8.781 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001075/0.5422, allocations: 1.385 MB / 0.5591 GB, free: 7.414 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00136/0.5436, allocations: 1.172 MB / 0.5603 GB, free: 6.23 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 9.341e-05/0.5437, allocations: 301.1 kB / 0.5606 GB, free: 5.934 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002826/0.5465, allocations: 2.592 MB / 0.5631 GB, free: 3.332 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003695/0.5502, allocations: 5.104 MB / 0.5681 GB, free: 13.04 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00697/0.5571, allocations: 8.348 MB / 0.5762 GB, free: 3.508 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.028e-05/0.5572, allocations: 24 kB / 0.5763 GB, free: 3.484 MB / 442.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.009838/0.567, allocations: 8.633 MB / 0.5847 GB, free: 10.82 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.79e-05/0.5671, allocations: 40 kB / 0.5847 GB, free: 10.79 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-05/0.5672, allocations: 87.94 kB / 0.5848 GB, free: 10.7 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.5686, allocations: 0.8399 MB / 0.5856 GB, free: 9.859 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/0.5711, allocations: 1.365 MB / 0.587 GB, free: 8.492 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007023/0.5781, allocations: 7.363 MB / 0.5942 GB, free: 1.023 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/0.5802, allocations: 327.5 kB / 0.5945 GB, free: 0.7031 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002889/0.5805, allocations: 308 kB / 0.5948 GB, free: 412 kB / 458.8 MB 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.004345/0.5849, allocations: 3.509 MB / 0.5982 GB, free: 12.88 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004681/0.5853, allocations: 409.4 kB / 0.5986 GB, free: 12.48 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006558/0.5919, allocations: 5.946 MB / 0.6044 GB, free: 6.492 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.04e-05/0.5919, allocations: 43.98 kB / 0.6044 GB, free: 6.449 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.5919, allocations: 11.98 kB / 0.6044 GB, free: 6.438 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.227e-05/0.5919, allocations: 23.92 kB / 0.6045 GB, free: 6.414 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/0.6069, allocations: 13.02 MB / 0.6172 GB, free: 9.355 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/0.6069, allocations: 8 kB / 0.6172 GB, free: 9.348 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/0.6083, allocations: 0.6988 MB / 0.6179 GB, free: 8.648 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.6094, allocations: 0.6936 MB / 0.6185 GB, free: 7.953 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001601/0.6095, allocations: 87.97 kB / 0.6186 GB, free: 7.867 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005988/0.6155, allocations: 6.374 MB / 0.6249 GB, free: 1.387 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.6155, allocations: 11.94 kB / 0.6249 GB, free: 1.375 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1834/0.7989, allocations: 8.727 MB / 0.6334 GB, free: 160.8 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001721/0.8006, allocations: 0.8293 MB / 0.6342 GB, free: 160.6 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000353/0.801, allocations: 76.34 kB / 0.6343 GB, free: 160.6 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009834/0.802, allocations: 181.7 kB / 0.6344 GB, free: 160.5 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003646/0.8023, allocations: 284.8 kB / 0.6347 GB, free: 160.5 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.8025, allocations: 117 kB / 0.6348 GB, free: 160.4 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002394/0.8049, allocations: 2.283 MB / 0.6371 GB, free: 159.6 MB / 490.8 MB Notification: Performance of sort global known variables: time 8e-08/0.8049, allocations: 0 / 0.6371 GB, free: 159.6 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.003473/0.8083, allocations: 1.546 MB / 0.6386 GB, free: 159.4 MB / 490.8 MB 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.0004288/0.8088, allocations: 265.7 kB / 0.6388 GB, free: 159.3 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.005989/0.8147, allocations: 6.262 MB / 0.6449 GB, free: 156.9 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.8148, allocations: 0 / 0.6449 GB, free: 156.9 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002311/0.8171, allocations: 2.748 MB / 0.6476 GB, free: 155.9 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/0.8193, allocations: 0.8994 MB / 0.6485 GB, free: 155.6 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01488/0.8342, allocations: 15.66 MB / 0.6638 GB, free: 141.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003022/0.8372, allocations: 5.344 MB / 0.669 GB, free: 137.9 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009298/0.8381, allocations: 406.2 kB / 0.6694 GB, free: 137.5 MB / 490.8 MB Notification: Performance of SimCode: time 1.453e-06/0.8381, allocations: 0 / 0.6694 GB, free: 137.5 MB / 490.8 MB Notification: Performance of Templates: time 0.2652/1.103, allocations: 155 MB / 0.8208 GB, free: 166.6 MB / 0.4949 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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: 10.305716554634273]