Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001909/0.001909, allocations: 103.5 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002044/0.002044, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 177 MB / 204.5 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 272.2 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.621e-05/2.772e-05, allocations: 6.312 kB / 272.3 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1574/0.1574, allocations: 27.86 MB / 300.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0167/0.1741, allocations: 8.402 MB / 308.5 MB, free: 9.738 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006878/0.181, allocations: 252.4 kB / 308.8 MB, free: 9.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01786/0.1988, allocations: 8.702 MB / 317.5 MB, free: 4.125 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01072/0.2095, allocations: 2.911 MB / 320.4 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005481/0.215, allocations: 1.901 MB / 322.3 MB, free: 360 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01787/0.2329, allocations: 10.44 MB / 332.7 MB, free: 6.418 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02903/0.2619, allocations: 13.92 MB / 346.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01913/0.281, allocations: 8.183 MB / 354.8 MB, free: 164 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01191/0.293, allocations: 5.825 MB / 360.6 MB, free: 10.32 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004488/0.2974, allocations: 1.539 MB / 362.2 MB, free: 8.781 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006982/0.3044, allocations: 1.913 MB / 364.1 MB, free: 6.867 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005255/0.3097, allocations: 3.094 MB / 367.2 MB, free: 3.766 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01001/0.3197, allocations: 3.961 MB / 371.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03118/0.3509, allocations: 21.08 MB / 392.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3509, allocations: 0 / 392.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3509, allocations: 7.938 kB / 392.2 MB, free: 10.65 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005098/0.3514, allocations: 0 / 392.2 MB, free: 10.65 MB / 346.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.04006/0.3915, allocations: 13.79 MB / 406 MB, free: 12.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3915, allocations: 16.03 kB / 406 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03572/0.4272, allocations: 7.042 MB / 413.1 MB, free: 5.691 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01629/0.4435, allocations: 6.073 MB / 419.2 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007966/0.4443, allocations: 0.7028 MB / 419.9 MB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003449/0.4478, allocations: 0.9373 MB / 420.8 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2719/0.7197, allocations: 15.52 MB / 436.3 MB, free: 102.1 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003092/0.72, allocations: 18.86 kB / 436.3 MB, free: 102.1 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001709/0.7217, allocations: 393.6 kB / 436.7 MB, free: 102.1 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005889/0.7223, allocations: 0.5145 MB / 437.2 MB, free: 102.1 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02509/0.7474, allocations: 12.18 MB / 449.4 MB, free: 100.2 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0785/0.8259, allocations: 72.24 MB / 0.5094 GB, free: 34.36 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/0.8378, allocations: 7.481 MB / 0.5167 GB, free: 28.12 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003325/0.8412, allocations: 2.416 MB / 0.5191 GB, free: 25.7 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003046/0.8415, allocations: 114.9 kB / 0.5192 GB, free: 25.59 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/0.8415, allocations: 84.34 kB / 0.5193 GB, free: 25.49 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 6.822e-06/0.8415, allocations: 0 / 0.5193 GB, free: 25.49 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.024/0.8655, allocations: 12.86 MB / 0.5319 GB, free: 12.98 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.8656, allocations: 98.36 kB / 0.5319 GB, free: 12.87 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005686/0.8712, allocations: 5.167 MB / 0.537 GB, free: 7.797 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000361/0.8716, allocations: 89.7 kB / 0.5371 GB, free: 7.703 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001951/0.8736, allocations: 4.691 MB / 0.5417 GB, free: 3.113 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009671/0.8745, allocations: 1.526 MB / 0.5432 GB, free: 1.605 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001749/0.8763, allocations: 1.558 MB / 0.5447 GB, free: 32 kB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0002486/0.8765, allocations: 476.8 kB / 0.5451 GB, free: 15.56 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003869/0.8804, allocations: 2.12 MB / 0.5472 GB, free: 13.44 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007755/0.8881, allocations: 6.098 MB / 0.5532 GB, free: 5.723 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01317/0.9013, allocations: 9.026 MB / 0.562 GB, free: 11.08 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.318e-05/0.9014, allocations: 28 kB / 0.562 GB, free: 11.05 MB / 410.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01672/0.9181, allocations: 8.031 MB / 0.5698 GB, free: 2.988 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.934e-05/0.9182, allocations: 40 kB / 0.5699 GB, free: 2.949 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000145/0.9183, allocations: 84 kB / 0.57 GB, free: 2.867 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003465/0.9218, allocations: 1.006 MB / 0.5709 GB, free: 1.855 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005492/0.9273, allocations: 1.369 MB / 0.5723 GB, free: 496 kB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.151/1.078, allocations: 8.012 MB / 0.5801 GB, free: 106.2 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003979/1.082, allocations: 324 kB / 0.5804 GB, free: 106.2 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005351/1.083, allocations: 311.6 kB / 0.5807 GB, free: 106.2 MB / 410.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.004851/1.088, allocations: 3.256 MB / 0.5839 GB, free: 106.1 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/1.089, allocations: 0.5284 MB / 0.5844 GB, free: 106 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00837/1.097, allocations: 5.129 MB / 0.5894 GB, free: 105.8 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/1.097, allocations: 41.66 kB / 0.5894 GB, free: 105.8 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/1.097, allocations: 7.438 kB / 0.5895 GB, free: 105.8 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.345e-05/1.097, allocations: 20.16 kB / 0.5895 GB, free: 105.8 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02356/1.121, allocations: 16.21 MB / 0.6053 GB, free: 101.5 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/1.121, allocations: 4.281 kB / 0.6053 GB, free: 101.5 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00276/1.124, allocations: 0.7062 MB / 0.606 GB, free: 101.4 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002459/1.126, allocations: 0.8574 MB / 0.6068 GB, free: 101.2 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002405/1.126, allocations: 86.28 kB / 0.6069 GB, free: 101.2 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007647/1.134, allocations: 7.024 MB / 0.6138 GB, free: 96.98 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.134, allocations: 9.781 kB / 0.6138 GB, free: 96.98 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009588/1.144, allocations: 7.384 MB / 0.621 GB, free: 94.07 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002013/1.146, allocations: 0.763 MB / 0.6217 GB, free: 93.76 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004552/1.146, allocations: 76.17 kB / 0.6218 GB, free: 93.71 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/1.148, allocations: 178.3 kB / 0.622 GB, free: 93.66 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004848/1.148, allocations: 284.5 kB / 0.6223 GB, free: 93.62 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/1.148, allocations: 121.8 kB / 0.6224 GB, free: 93.59 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003124/1.152, allocations: 2.629 MB / 0.6249 GB, free: 92.52 MB / 410.8 MB Notification: Performance of sort global known variables: time 1e-07/1.152, allocations: 0 / 0.6249 GB, free: 92.52 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.004714/1.156, allocations: 1.546 MB / 0.6264 GB, free: 91.89 MB / 410.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.0004943/1.157, allocations: 271.5 kB / 0.6267 GB, free: 91.64 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.008073/1.165, allocations: 6.135 MB / 0.6327 GB, free: 85.87 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/1.165, allocations: 0 / 0.6327 GB, free: 85.87 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003556/1.168, allocations: 2.678 MB / 0.6353 GB, free: 83.18 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004219/1.173, allocations: 0.9294 MB / 0.6362 GB, free: 82.3 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01966/1.192, allocations: 14.96 MB / 0.6508 GB, free: 67.18 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004078/1.196, allocations: 5.032 MB / 0.6557 GB, free: 62.09 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003832/1.2, allocations: 1.599 MB / 0.6573 GB, free: 60.48 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009088/1.201, allocations: 356.4 kB / 0.6576 GB, free: 60.13 MB / 410.8 MB Notification: Performance of SimCode: time 1.042e-06/1.201, allocations: 0 / 0.6576 GB, free: 60.13 MB / 410.8 MB Notification: Performance of Templates: time 0.08283/1.284, allocations: 55.15 MB / 0.7115 GB, free: 5.605 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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_trunk_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.733533576945774]