Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 188.3 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 55.91 kB / 371.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2827, allocations: 52.18 MB / 423.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03088/0.3136, allocations: 24.6 MB / 448.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01937/0.333, allocations: 8.08 MB / 456.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006245/0.3392, allocations: 258.6 kB / 456.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02057/0.3598, allocations: 7.624 MB / 464.4 MB, free: 5.746 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01052/0.3703, allocations: 2.844 MB / 467.3 MB, free: 2.891 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006322/0.3766, allocations: 1.808 MB / 469.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01527/0.3919, allocations: 10.05 MB / 479.1 MB, free: 7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02733/0.4192, allocations: 13.87 MB / 493 MB, free: 8.992 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009945/0.4292, allocations: 5.494 MB / 498.5 MB, free: 3.484 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01194/0.4411, allocations: 5.831 MB / 0.4925 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00552/0.4466, allocations: 1.543 MB / 0.494 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008174/0.4548, allocations: 1.882 MB / 0.4958 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007331/0.4621, allocations: 2.981 MB / 0.4988 GB, free: 7.219 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01414/0.4763, allocations: 4.541 MB / 0.5032 GB, free: 2.66 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02827/0.5045, allocations: 20.75 MB / 0.5235 GB, free: 13.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.5045, allocations: 0 / 0.5235 GB, free: 13.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5045, allocations: 0 / 0.5235 GB, free: 13.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006148/0.5052, allocations: 4 kB / 0.5235 GB, free: 13.84 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.03717/0.5423, allocations: 11.97 MB / 0.5351 GB, free: 1.777 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.5424, allocations: 8.031 kB / 0.5352 GB, free: 1.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.447/0.9893, allocations: 5.681 MB / 0.5407 GB, free: 98.61 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/1.002, allocations: 6.369 MB / 0.5469 GB, free: 95.85 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005251/1.003, allocations: 0.703 MB / 0.5476 GB, free: 95.53 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003293/1.006, allocations: 0.9247 MB / 0.5485 GB, free: 95.08 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03332/1.039, allocations: 15.21 MB / 0.5634 GB, free: 79.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003851/1.04, allocations: 15.94 kB / 0.5634 GB, free: 79.76 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002729/1.042, allocations: 399.6 kB / 0.5638 GB, free: 79.38 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004064/1.043, allocations: 0.5155 MB / 0.5643 GB, free: 78.86 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02569/1.068, allocations: 13.68 MB / 0.5776 GB, free: 65.15 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06721/1.136, allocations: 41.29 MB / 0.618 GB, free: 23.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01219/1.148, allocations: 7.952 MB / 0.6257 GB, free: 16.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003905/1.152, allocations: 2.795 MB / 0.6284 GB, free: 13.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00033/1.152, allocations: 74.97 kB / 0.6285 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/1.152, allocations: 69.58 kB / 0.6286 GB, free: 13.83 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 7.634e-06/1.152, allocations: 4 kB / 0.6286 GB, free: 13.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02565/1.178, allocations: 14.64 MB / 0.6429 GB, free: 15.31 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.188e-05/1.178, allocations: 90.48 kB / 0.643 GB, free: 15.21 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005751/1.184, allocations: 3.555 MB / 0.6464 GB, free: 11.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006201/1.184, allocations: 85.7 kB / 0.6465 GB, free: 11.55 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003501/1.188, allocations: 4.186 MB / 0.6506 GB, free: 7.363 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001926/1.19, allocations: 1.408 MB / 0.652 GB, free: 5.973 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002049/1.192, allocations: 1.168 MB / 0.6531 GB, free: 4.793 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/1.192, allocations: 305.1 kB / 0.6534 GB, free: 4.492 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004636/1.196, allocations: 2.588 MB / 0.6559 GB, free: 1.898 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007224/1.204, allocations: 5.112 MB / 0.6609 GB, free: 11.61 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01238/1.216, allocations: 8.337 MB / 0.6691 GB, free: 2.082 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.382e-05/1.216, allocations: 24 kB / 0.6691 GB, free: 2.059 MB / 478.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01805/1.234, allocations: 8.602 MB / 0.6775 GB, free: 9.43 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/1.234, allocations: 40.12 kB / 0.6775 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001577/1.234, allocations: 84 kB / 0.6776 GB, free: 9.309 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002624/1.237, allocations: 0.8302 MB / 0.6784 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005325/1.242, allocations: 1.373 MB / 0.6798 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/1.255, allocations: 7.34 MB / 0.6869 GB, free: 15.64 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004369/1.259, allocations: 331.5 kB / 0.6873 GB, free: 15.32 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0012/1.261, allocations: 307.9 kB / 0.6876 GB, free: 15.02 MB / 0.4982 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.00754/1.268, allocations: 3.513 MB / 0.691 GB, free: 11.49 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001517/1.27, allocations: 413.3 kB / 0.6914 GB, free: 11.08 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0125/1.282, allocations: 5.938 MB / 0.6972 GB, free: 5.102 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.57e-05/1.282, allocations: 47.92 kB / 0.6972 GB, free: 5.055 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/1.282, allocations: 15.94 kB / 0.6972 GB, free: 5.039 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.69e-05/1.282, allocations: 19.92 kB / 0.6973 GB, free: 5.02 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02756/1.31, allocations: 13 MB / 0.7099 GB, free: 7.879 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.792e-05/1.31, allocations: 4 kB / 0.71 GB, free: 7.875 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002799/1.313, allocations: 0.6949 MB / 0.7106 GB, free: 7.18 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002055/1.315, allocations: 0.6973 MB / 0.7113 GB, free: 6.48 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002743/1.315, allocations: 87.92 kB / 0.7114 GB, free: 6.395 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00985/1.325, allocations: 6.386 MB / 0.7176 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/1.325, allocations: 7.984 kB / 0.7176 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01475/1.34, allocations: 8.717 MB / 0.7262 GB, free: 7.059 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003145/1.343, allocations: 0.8289 MB / 0.727 GB, free: 6.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.344, allocations: 79.92 kB / 0.727 GB, free: 6.148 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002353/1.346, allocations: 187.9 kB / 0.7272 GB, free: 5.965 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006434/1.347, allocations: 274.5 kB / 0.7275 GB, free: 5.695 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003143/1.347, allocations: 116 kB / 0.7276 GB, free: 5.582 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004859/1.352, allocations: 2.279 MB / 0.7298 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.1e-08/1.352, allocations: 0 / 0.7298 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006891/1.359, allocations: 1.543 MB / 0.7313 GB, free: 1.77 MB / 0.5294 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.0009121/1.36, allocations: 262.6 kB / 0.7316 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01246/1.372, allocations: 6.254 MB / 0.7377 GB, free: 11.24 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-05/1.372, allocations: 4 kB / 0.7377 GB, free: 11.24 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005898/1.378, allocations: 2.721 MB / 0.7403 GB, free: 8.508 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005794/1.384, allocations: 0.9035 MB / 0.7412 GB, free: 7.625 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2685/1.652, allocations: 15.76 MB / 0.7566 GB, free: 187.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006965/1.659, allocations: 5.342 MB / 0.7618 GB, free: 187.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/1.661, allocations: 375 kB / 0.7622 GB, free: 187.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.834e-06/1.661, allocations: 0 / 0.7622 GB, free: 187.3 MB / 0.545 GB Notification: Performance of Templates: time 0.1634/1.824, allocations: 153.9 MB / 0.9125 GB, free: 41.18 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 15.688700126018375]