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.001467/0.001467, allocations: 88.31 kB / 20.96 MB, free: 3.477 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.001609/0.001609, allocations: 161.7 kB / 24.27 MB, free: 172 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.478/1.478, allocations: 177.2 MB / 204.6 MB, free: 5.59 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.874e-06/1.874e-06, allocations: 0 / 272.4 MB, free: 1.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.457e-05/2.644e-05, allocations: 2.312 kB / 272.4 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1436/0.1436, allocations: 24.66 MB / 297 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0221/0.1657, allocations: 8.207 MB / 305.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009994/0.1757, allocations: 256 kB / 305.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02375/0.1995, allocations: 8.06 MB / 313.5 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.2113, allocations: 2.88 MB / 316.4 MB, free: 4.215 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005997/0.2173, allocations: 1.859 MB / 318.3 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01358/0.2309, allocations: 10.44 MB / 328.7 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02665/0.2576, allocations: 13.91 MB / 342.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01638/0.2739, allocations: 8.132 MB / 350.8 MB, free: 3.668 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01099/0.2849, allocations: 5.251 MB / 356 MB, free: 14.4 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004109/0.289, allocations: 1.539 MB / 357.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006522/0.2956, allocations: 1.921 MB / 359.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005162/0.3007, allocations: 3.043 MB / 362.5 MB, free: 7.891 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008689/0.3094, allocations: 3.91 MB / 366.4 MB, free: 3.973 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02953/0.3389, allocations: 20.95 MB / 387.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3389, allocations: 0 / 387.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3389, allocations: 0 / 387.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004441/0.3394, allocations: 0 / 387.4 MB, free: 14.96 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.03509/0.3745, allocations: 11.92 MB / 399.3 MB, free: 2.953 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.3745, allocations: 8.031 kB / 399.3 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03381/0.4083, allocations: 7.045 MB / 406.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01549/0.4238, allocations: 6.641 MB / 413 MB, free: 5.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008454/0.4247, allocations: 0.7028 MB / 413.7 MB, free: 4.477 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003298/0.428, allocations: 0.9412 MB / 414.6 MB, free: 3.535 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03847/0.4664, allocations: 15.24 MB / 429.9 MB, free: 4.176 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003007/0.4667, allocations: 15.91 kB / 429.9 MB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002024/0.4688, allocations: 396 kB / 430.3 MB, free: 3.773 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006575/0.4694, allocations: 0.5155 MB / 430.8 MB, free: 3.254 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2386/0.7081, allocations: 13.71 MB / 444.5 MB, free: 107.3 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0613/0.7694, allocations: 42.49 MB / 487 MB, free: 73.5 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01189/0.7812, allocations: 8.041 MB / 495 MB, free: 66.72 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003622/0.7849, allocations: 2.803 MB / 497.8 MB, free: 63.92 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003199/0.7852, allocations: 118.9 kB / 497.9 MB, free: 63.8 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.7852, allocations: 73.56 kB / 498 MB, free: 63.72 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 6.362e-06/0.7852, allocations: 0 / 498 MB, free: 63.72 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.02439/0.8096, allocations: 14.81 MB / 0.5008 GB, free: 49.25 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.8097, allocations: 94.48 kB / 0.5009 GB, free: 49.14 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003843/0.8135, allocations: 3.558 MB / 0.5044 GB, free: 45.69 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000282/0.8138, allocations: 93.7 kB / 0.5045 GB, free: 45.59 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00144/0.8152, allocations: 4.173 MB / 0.5085 GB, free: 41.55 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007902/0.816, allocations: 1.388 MB / 0.5099 GB, free: 40.18 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001361/0.8174, allocations: 1.164 MB / 0.511 GB, free: 39 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.869e-05/0.8174, allocations: 305.1 kB / 0.5113 GB, free: 38.7 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002994/0.8204, allocations: 2.592 MB / 0.5139 GB, free: 36.11 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003819/0.8242, allocations: 5.108 MB / 0.5188 GB, free: 29.82 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007444/0.8317, allocations: 8.348 MB / 0.527 GB, free: 20.28 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-05/0.8317, allocations: 24 kB / 0.527 GB, free: 20.26 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01181/0.8435, allocations: 8.919 MB / 0.5357 GB, free: 11.31 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.154e-05/0.8436, allocations: 44 kB / 0.5358 GB, free: 11.27 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.221e-05/0.8437, allocations: 80 kB / 0.5358 GB, free: 11.19 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002827/0.8465, allocations: 1.011 MB / 0.5368 GB, free: 10.18 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004397/0.8509, allocations: 1.369 MB / 0.5382 GB, free: 8.805 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008746/0.8597, allocations: 7.411 MB / 0.5454 GB, free: 1.293 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004306/0.864, allocations: 327.5 kB / 0.5457 GB, free: 0.9727 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008288/0.8648, allocations: 308 kB / 0.546 GB, free: 0.6719 MB / 378.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.006496/0.8713, allocations: 3.515 MB / 0.5494 GB, free: 13.14 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/0.8726, allocations: 0.5287 MB / 0.55 GB, free: 12.61 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/0.8848, allocations: 5.946 MB / 0.5558 GB, free: 6.629 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-05/0.8848, allocations: 43.98 kB / 0.5558 GB, free: 6.586 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.709e-05/0.8849, allocations: 12 kB / 0.5558 GB, free: 6.574 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.764e-05/0.8849, allocations: 19.92 kB / 0.5558 GB, free: 6.555 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.027/0.9119, allocations: 13.03 MB / 0.5686 GB, free: 9.477 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/0.9119, allocations: 8 kB / 0.5686 GB, free: 9.469 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002994/0.9149, allocations: 0.6949 MB / 0.5693 GB, free: 8.773 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002943/0.9179, allocations: 0.8571 MB / 0.5701 GB, free: 7.918 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003314/0.9182, allocations: 91.97 kB / 0.5702 GB, free: 7.828 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.9291, allocations: 6.424 MB / 0.5765 GB, free: 1.305 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/0.9292, allocations: 15.94 kB / 0.5765 GB, free: 1.289 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1373/1.066, allocations: 8.847 MB / 0.5851 GB, free: 122.9 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002077/1.069, allocations: 0.8378 MB / 0.5859 GB, free: 122.7 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006511/1.069, allocations: 75.52 kB / 0.586 GB, free: 122.7 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002012/1.071, allocations: 181.2 kB / 0.5862 GB, free: 122.6 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006114/1.072, allocations: 286.3 kB / 0.5864 GB, free: 122.6 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002524/1.072, allocations: 114.6 kB / 0.5866 GB, free: 122.6 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003344/1.075, allocations: 2.285 MB / 0.5888 GB, free: 121.7 MB / 410.8 MB Notification: Performance of sort global known variables: time 9e-08/1.075, allocations: 2.188 kB / 0.5888 GB, free: 121.7 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005126/1.081, allocations: 1.549 MB / 0.5903 GB, free: 121.6 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.0005219/1.081, allocations: 265 kB / 0.5906 GB, free: 121.4 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.008617/1.09, allocations: 6.27 MB / 0.5967 GB, free: 119.1 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/1.09, allocations: 5.438 kB / 0.5967 GB, free: 119.1 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00388/1.094, allocations: 2.731 MB / 0.5993 GB, free: 118 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004287/1.098, allocations: 0.911 MB / 0.6002 GB, free: 117.7 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02538/1.123, allocations: 16.18 MB / 0.616 GB, free: 108.4 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00481/1.128, allocations: 5.519 MB / 0.6214 GB, free: 104.2 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.004045/1.132, allocations: 1.865 MB / 0.6232 GB, free: 103 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008962/1.133, allocations: 355.8 kB / 0.6236 GB, free: 102.6 MB / 410.8 MB Notification: Performance of SimCode: time 1.583e-06/1.133, allocations: 0 / 0.6236 GB, free: 102.6 MB / 410.8 MB Notification: Performance of Templates: time 0.07992/1.213, allocations: 55.36 MB / 0.6776 GB, free: 49.66 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=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.5365904569625854]