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.002343/0.002343, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.002008/0.002008, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 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 1.585/1.585, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 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 1.924e-06/1.924e-06, allocations: 0 / 272.4 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.758e-05/2.951e-05, allocations: 2.312 kB / 272.4 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1652/0.1652, allocations: 27.87 MB / 300.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01516/0.1804, allocations: 8.396 MB / 308.6 MB, free: 9.953 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004704/0.1851, allocations: 255.9 kB / 308.9 MB, free: 9.871 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01648/0.2016, allocations: 8.707 MB / 317.6 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008317/0.2099, allocations: 2.92 MB / 320.5 MB, free: 1.961 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004542/0.2144, allocations: 1.903 MB / 322.4 MB, free: 500 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01504/0.2295, allocations: 10.42 MB / 332.8 MB, free: 6.527 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02684/0.2563, allocations: 13.93 MB / 346.8 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01718/0.2735, allocations: 8.191 MB / 354.9 MB, free: 260 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01165/0.2851, allocations: 5.821 MB / 360.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004016/0.2892, allocations: 1.543 MB / 362.3 MB, free: 8.879 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006285/0.2954, allocations: 1.917 MB / 364.2 MB, free: 6.961 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004781/0.3002, allocations: 3.094 MB / 367.3 MB, free: 3.859 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008845/0.3091, allocations: 3.961 MB / 371.3 MB, free: 15.89 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02917/0.3382, allocations: 21.08 MB / 392.4 MB, free: 10.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3382, allocations: 0 / 392.4 MB, free: 10.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3382, allocations: 0 / 392.4 MB, free: 10.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005124/0.3388, allocations: 0 / 392.4 MB, free: 10.76 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.04422/0.383, allocations: 13.8 MB / 406.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.383, allocations: 8.031 kB / 406.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03641/0.4194, allocations: 7.049 MB / 413.2 MB, free: 5.789 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01673/0.4362, allocations: 6.07 MB / 419.3 MB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007971/0.437, allocations: 0.6988 MB / 420 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003612/0.4406, allocations: 0.9373 MB / 420.9 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2636/0.7041, allocations: 15.53 MB / 436.5 MB, free: 102.2 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000423/0.7046, allocations: 14.39 kB / 436.5 MB, free: 102.2 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002606/0.7072, allocations: 388.9 kB / 436.8 MB, free: 102.2 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006144/0.7078, allocations: 0.5152 MB / 437.4 MB, free: 102.2 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02411/0.7319, allocations: 12.18 MB / 449.5 MB, free: 100.2 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07068/0.8026, allocations: 72.25 MB / 0.5096 GB, free: 34.51 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01134/0.8139, allocations: 7.473 MB / 0.5169 GB, free: 28.27 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003049/0.817, allocations: 2.419 MB / 0.5192 GB, free: 25.86 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002929/0.8173, allocations: 118.9 kB / 0.5193 GB, free: 25.74 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/0.8173, allocations: 72.41 kB / 0.5194 GB, free: 25.66 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 6.712e-06/0.8173, allocations: 4 kB / 0.5194 GB, free: 25.66 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.02315/0.8405, allocations: 12.86 MB / 0.532 GB, free: 13.13 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.8405, allocations: 94.42 kB / 0.5321 GB, free: 13.03 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005782/0.8463, allocations: 5.181 MB / 0.5371 GB, free: 7.941 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004873/0.8468, allocations: 85.7 kB / 0.5372 GB, free: 7.852 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002081/0.8488, allocations: 4.694 MB / 0.5418 GB, free: 3.258 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/0.85, allocations: 1.526 MB / 0.5433 GB, free: 1.75 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001847/0.8518, allocations: 1.554 MB / 0.5448 GB, free: 184 kB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.852, allocations: 476.8 kB / 0.5452 GB, free: 15.71 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004022/0.8561, allocations: 2.116 MB / 0.5473 GB, free: 13.59 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008237/0.8643, allocations: 6.098 MB / 0.5533 GB, free: 5.875 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/0.8786, allocations: 9.037 MB / 0.5621 GB, free: 11.22 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001123/0.8787, allocations: 20 kB / 0.5621 GB, free: 11.2 MB / 410.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01687/0.8956, allocations: 8.031 MB / 0.57 GB, free: 3.137 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.686e-05/0.8957, allocations: 40 kB / 0.57 GB, free: 3.098 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/0.8958, allocations: 88.86 kB / 0.5701 GB, free: 3.012 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003432/0.8993, allocations: 0.9939 MB / 0.5711 GB, free: 2.012 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005343/0.9046, allocations: 1.377 MB / 0.5724 GB, free: 0.6328 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.156/1.061, allocations: 8.015 MB / 0.5802 GB, free: 106.2 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004352/1.065, allocations: 328.2 kB / 0.5805 GB, free: 106.2 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001047/1.066, allocations: 310.4 kB / 0.5808 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.006321/1.072, allocations: 3.255 MB / 0.584 GB, free: 106.1 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001344/1.074, allocations: 0.5316 MB / 0.5845 GB, free: 106.1 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009003/1.083, allocations: 5.128 MB / 0.5895 GB, free: 105.8 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-05/1.083, allocations: 40.75 kB / 0.5896 GB, free: 105.8 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/1.083, allocations: 7.688 kB / 0.5896 GB, free: 105.8 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.702e-05/1.083, allocations: 19.27 kB / 0.5896 GB, free: 105.8 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02696/1.11, allocations: 16.21 MB / 0.6054 GB, free: 101.5 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.52e-05/1.11, allocations: 6.594 kB / 0.6054 GB, free: 101.5 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002722/1.112, allocations: 0.6979 MB / 0.6061 GB, free: 101.4 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002605/1.115, allocations: 0.8538 MB / 0.607 GB, free: 101.2 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003494/1.115, allocations: 86.92 kB / 0.607 GB, free: 101.2 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007894/1.123, allocations: 7.037 MB / 0.6139 GB, free: 96.98 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.123, allocations: 11.75 kB / 0.6139 GB, free: 96.98 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/1.134, allocations: 7.381 MB / 0.6211 GB, free: 94.06 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002194/1.136, allocations: 0.7615 MB / 0.6219 GB, free: 93.75 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005135/1.137, allocations: 70.94 kB / 0.6219 GB, free: 93.7 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/1.138, allocations: 182.7 kB / 0.6221 GB, free: 93.64 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004738/1.139, allocations: 282.6 kB / 0.6224 GB, free: 93.6 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002119/1.139, allocations: 119.4 kB / 0.6225 GB, free: 93.57 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003268/1.142, allocations: 2.634 MB / 0.6251 GB, free: 92.5 MB / 410.8 MB Notification: Performance of sort global known variables: time 8e-08/1.142, allocations: 0 / 0.6251 GB, free: 92.5 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.004927/1.147, allocations: 1.549 MB / 0.6266 GB, free: 91.97 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.0005067/1.148, allocations: 266.5 kB / 0.6268 GB, free: 91.72 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.008272/1.156, allocations: 6.13 MB / 0.6328 GB, free: 85.92 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/1.156, allocations: 4 kB / 0.6328 GB, free: 85.92 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003634/1.16, allocations: 2.674 MB / 0.6354 GB, free: 83.23 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004746/1.164, allocations: 0.9296 MB / 0.6363 GB, free: 82.36 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02251/1.187, allocations: 14.96 MB / 0.651 GB, free: 67.22 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005428/1.192, allocations: 5.032 MB / 0.6559 GB, free: 62.13 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.004014/1.196, allocations: 1.595 MB / 0.6574 GB, free: 60.53 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009353/1.197, allocations: 352.4 kB / 0.6578 GB, free: 60.19 MB / 410.8 MB Notification: Performance of SimCode: time 1.844e-06/1.197, allocations: 0 / 0.6578 GB, free: 60.19 MB / 410.8 MB Notification: Performance of Templates: time 0.08477/1.282, allocations: 55.17 MB / 0.7116 GB, free: 5.727 MB / 410.8 MB " [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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] 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.754415428964421]