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.001455/0.001455, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 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.001546/0.001546, allocations: 214.4 kB / 23.74 MB, free: 4.656 MB / 14.72 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 1.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002446/0.002446, allocations: 51.91 kB / 378.3 MB, free: 2.547 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2737, allocations: 53.36 MB / 431.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03448/0.3082, allocations: 28.8 MB / 460.5 MB, free: 9.953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.019/0.3272, allocations: 8.54 MB / 469 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005465/0.3326, allocations: 254.7 kB / 469.3 MB, free: 1.133 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02024/0.3529, allocations: 8.301 MB / 477.6 MB, free: 8.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009661/0.3625, allocations: 2.914 MB / 480.5 MB, free: 5.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005743/0.3683, allocations: 1.925 MB / 482.4 MB, free: 3.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0148/0.3831, allocations: 10.12 MB / 492.5 MB, free: 9.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02541/0.4085, allocations: 14.04 MB / 0.4947 GB, free: 11.64 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009253/0.4178, allocations: 5.502 MB / 0.5001 GB, free: 6.129 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01034/0.4281, allocations: 6.14 MB / 0.5061 GB, free: 15.97 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003553/0.4316, allocations: 1.539 MB / 0.5076 GB, free: 14.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004901/0.4365, allocations: 1.933 MB / 0.5094 GB, free: 12.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003371/0.4399, allocations: 2.989 MB / 0.5124 GB, free: 9.5 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008667/0.4486, allocations: 5.848 MB / 0.5181 GB, free: 3.629 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4096/0.8581, allocations: 20.69 MB / 0.5383 GB, free: 37.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.8581, allocations: 1.891 kB / 0.5383 GB, free: 37.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.8581, allocations: 0.6562 kB / 0.5383 GB, free: 37.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004885/0.8586, allocations: 0.6875 kB / 0.5383 GB, free: 37.97 MB / 446.1 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.03283/0.8915, allocations: 12.02 MB / 0.55 GB, free: 34.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.8915, allocations: 14.86 kB / 0.55 GB, free: 34.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02984/0.9213, allocations: 5.587 MB / 0.5555 GB, free: 34.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01433/0.9357, allocations: 6.387 MB / 0.5617 GB, free: 33.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007406/0.9364, allocations: 0.7016 MB / 0.5624 GB, free: 33.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003855/0.9403, allocations: 0.93 MB / 0.5633 GB, free: 33.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03436/0.9746, allocations: 15.09 MB / 0.5781 GB, free: 25.11 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004468/0.9751, allocations: 19.94 kB / 0.5781 GB, free: 25.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002826/0.9779, allocations: 389.2 kB / 0.5784 GB, free: 24.72 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004218/0.9783, allocations: 0.5155 MB / 0.579 GB, free: 24.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02488/1.003, allocations: 13.78 MB / 0.5924 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08952/1.093, allocations: 46.55 MB / 0.6379 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01527/1.108, allocations: 8.065 MB / 0.6457 GB, free: 4.891 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005244/1.113, allocations: 2.8 MB / 0.6485 GB, free: 2.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000457/1.114, allocations: 110.7 kB / 0.6486 GB, free: 2.004 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.289e-05/1.114, allocations: 85.5 kB / 0.6487 GB, free: 1.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.693e-06/1.114, allocations: 0 / 0.6487 GB, free: 1.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03418/1.148, allocations: 14.75 MB / 0.6631 GB, free: 3.16 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.889e-05/1.148, allocations: 94.48 kB / 0.6632 GB, free: 3.055 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006562/1.155, allocations: 3.607 MB / 0.6667 GB, free: 15.45 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005065/1.155, allocations: 92.22 kB / 0.6668 GB, free: 15.36 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003379/1.158, allocations: 4.186 MB / 0.6709 GB, free: 11.16 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001652/1.16, allocations: 1.409 MB / 0.6722 GB, free: 9.773 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002612/1.163, allocations: 1.172 MB / 0.6734 GB, free: 8.59 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001292/1.163, allocations: 309.1 kB / 0.6737 GB, free: 8.285 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004763/1.168, allocations: 2.596 MB / 0.6762 GB, free: 5.684 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006742/1.174, allocations: 5.087 MB / 0.6812 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01169/1.186, allocations: 8.356 MB / 0.6893 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.456e-05/1.186, allocations: 24 kB / 0.6894 GB, free: 6.242 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01561/1.202, allocations: 8.653 MB / 0.6978 GB, free: 14.08 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.583e-05/1.202, allocations: 40 kB / 0.6978 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001269/1.202, allocations: 88.06 kB / 0.6979 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002418/1.204, allocations: 0.8453 MB / 0.6988 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004871/1.209, allocations: 1.371 MB / 0.7001 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/1.221, allocations: 7.59 MB / 0.7075 GB, free: 4.184 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004092/1.225, allocations: 331.5 kB / 0.7078 GB, free: 3.859 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007192/1.226, allocations: 312 kB / 0.7081 GB, free: 3.555 MB / 0.545 GB 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.00584/1.232, allocations: 3.507 MB / 0.7115 GB, free: 140 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000964/1.233, allocations: 429.3 kB / 0.712 GB, free: 15.71 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0111/1.244, allocations: 5.969 MB / 0.7178 GB, free: 9.738 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.821e-05/1.244, allocations: 40 kB / 0.7178 GB, free: 9.699 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/1.244, allocations: 8 kB / 0.7178 GB, free: 9.691 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.853e-05/1.244, allocations: 19.92 kB / 0.7179 GB, free: 9.672 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02859/1.273, allocations: 14.97 MB / 0.7325 GB, free: 10.77 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/1.273, allocations: 4 kB / 0.7325 GB, free: 10.77 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002852/1.275, allocations: 0.6943 MB / 0.7332 GB, free: 10.11 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/1.278, allocations: 0.7137 MB / 0.7339 GB, free: 9.395 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002967/1.278, allocations: 87.97 kB / 0.7339 GB, free: 9.309 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/1.288, allocations: 6.614 MB / 0.7404 GB, free: 2.609 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/1.288, allocations: 4 kB / 0.7404 GB, free: 2.605 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01496/1.303, allocations: 8.773 MB / 0.749 GB, free: 9.738 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002837/1.306, allocations: 0.8549 MB / 0.7498 GB, free: 8.883 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008489/1.307, allocations: 83.88 kB / 0.7499 GB, free: 8.801 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001944/1.309, allocations: 183.9 kB / 0.7501 GB, free: 8.621 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005337/1.309, allocations: 280.3 kB / 0.7503 GB, free: 8.352 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002565/1.309, allocations: 123.9 kB / 0.7504 GB, free: 8.23 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004059/1.313, allocations: 2.412 MB / 0.7528 GB, free: 5.832 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.51e-07/1.313, allocations: 4 kB / 0.7528 GB, free: 5.828 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005759/1.319, allocations: 1.555 MB / 0.7543 GB, free: 4.273 MB / 0.5919 GB 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.0005792/1.32, allocations: 261 kB / 0.7546 GB, free: 4.051 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.2126/1.532, allocations: 6.27 MB / 0.7607 GB, free: 233.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/1.532, allocations: 3.438 kB / 0.7607 GB, free: 233.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004612/1.537, allocations: 2.74 MB / 0.7634 GB, free: 233.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00445/1.541, allocations: 0.9644 MB / 0.7643 GB, free: 233 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02368/1.565, allocations: 16.01 MB / 0.7799 GB, free: 226.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005277/1.57, allocations: 5.975 MB / 0.7858 GB, free: 224.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004048/1.574, allocations: 1.881 MB / 0.7876 GB, free: 223.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009369/1.575, allocations: 360.5 kB / 0.788 GB, free: 222.9 MB / 0.5919 GB Notification: Performance of SimCode: time 9.72e-07/1.575, allocations: 0 / 0.788 GB, free: 222.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.1127/1.688, allocations: 65.8 MB / 0.8522 GB, free: 158.9 MB / 0.5919 GB " [Timeout remaining time 658] 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: 7.99607960996218]