Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001333/0.001333, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 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.001487/0.001487, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.41/1.41, allocations: 230.6 MB / 258.3 MB, free: 8.039 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 67.88 kB / 379.1 MB, free: 2.602 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2378, allocations: 53.36 MB / 432.4 MB, free: 6.961 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03217/0.27, allocations: 28.81 MB / 461.3 MB, free: 10.03 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01672/0.2867, allocations: 8.536 MB / 469.8 MB, free: 1.461 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.004486/0.2912, allocations: 250.8 kB / 470 MB, free: 1.215 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.01951/0.3107, allocations: 8.295 MB / 478.3 MB, free: 8.902 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.01021/0.3209, allocations: 2.92 MB / 481.3 MB, free: 5.973 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.005649/0.3266, allocations: 1.93 MB / 483.2 MB, free: 4.043 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01424/0.3408, allocations: 10.1 MB / 493.3 MB, free: 9.914 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.02454/0.3654, allocations: 13.18 MB / 0.4946 GB, free: 12.6 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.008558/0.3739, allocations: 5.494 MB / 0.5 GB, free: 7.09 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.01139/0.3853, allocations: 6.14 MB / 0.506 GB, free: 0.9297 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.004472/0.3898, allocations: 1.539 MB / 0.5075 GB, free: 15.39 MB / 430.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.006011/0.3958, allocations: 1.929 MB / 0.5093 GB, free: 13.46 MB / 430.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.005253/0.401, allocations: 2.993 MB / 0.5123 GB, free: 10.46 MB / 430.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.01217/0.4132, allocations: 5.852 MB / 0.518 GB, free: 4.586 MB / 430.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.52/0.9332, allocations: 20.69 MB / 0.5382 GB, free: 37.18 MB / 446.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.9332, allocations: 0.5 kB / 0.5382 GB, free: 37.18 MB / 446.1 MB
Notification: Performance of FrontEnd: time 1.172e-06/0.9332, allocations: 0.5938 kB / 0.5382 GB, free: 37.18 MB / 446.1 MB
Notification: Performance of Transformations before backend: time 0.000573/0.9338, allocations: 0.5938 kB / 0.5382 GB, free: 37.18 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.0396/0.9734, allocations: 12.02 MB / 0.5499 GB, free: 33.86 MB / 446.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.9734, allocations: 9.688 kB / 0.5499 GB, free: 33.86 MB / 446.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03066/1.004, allocations: 5.594 MB / 0.5554 GB, free: 33.29 MB / 446.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01422/1.018, allocations: 6.379 MB / 0.5616 GB, free: 32.4 MB / 446.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006124/1.019, allocations: 0.7081 MB / 0.5623 GB, free: 32.38 MB / 446.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.003626/1.023, allocations: 0.9254 MB / 0.5632 GB, free: 32.37 MB / 446.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.03403/1.057, allocations: 15.1 MB / 0.578 GB, free: 25.23 MB / 446.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0003156/1.057, allocations: 26.08 kB / 0.578 GB, free: 25.21 MB / 446.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002144/1.059, allocations: 390.4 kB / 0.5784 GB, free: 24.84 MB / 446.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003783/1.059, allocations: 0.5155 MB / 0.5789 GB, free: 24.32 MB / 446.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02621/1.086, allocations: 13.78 MB / 0.5923 GB, free: 10.53 MB / 446.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08743/1.173, allocations: 46.55 MB / 0.6378 GB, free: 11.77 MB / 494.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.01619/1.189, allocations: 8.057 MB / 0.6456 GB, free: 5.016 MB / 494.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.005624/1.195, allocations: 2.798 MB / 0.6484 GB, free: 2.223 MB / 494.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0004262/1.195, allocations: 121 kB / 0.6485 GB, free: 2.125 MB / 494.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.95e-05/1.195, allocations: 73.52 kB / 0.6486 GB, free: 2.043 MB / 494.1 MB
Notification: Performance of pre-optimization done (n=384): time 5.42e-06/1.195, allocations: 0 / 0.6486 GB, free: 2.043 MB / 494.1 MB
Notification: Performance of matching and sorting (n=392): time 0.0351/1.231, allocations: 14.75 MB / 0.663 GB, free: 3.289 MB / 0.4982 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.689e-05/1.231, allocations: 102.1 kB / 0.6631 GB, free: 3.18 MB / 0.4982 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006328/1.237, allocations: 3.611 MB / 0.6666 GB, free: 15.57 MB / 0.5138 GB
Notification: Performance of collectPreVariables (initialization): time 0.00066/1.238, allocations: 85.7 kB / 0.6667 GB, free: 15.48 MB / 0.5138 GB
Notification: Performance of collectInitialEqns (initialization): time 0.003532/1.241, allocations: 4.189 MB / 0.6708 GB, free: 11.29 MB / 0.5138 GB
Notification: Performance of collectInitialBindings (initialization): time 0.001766/1.243, allocations: 1.408 MB / 0.6721 GB, free: 9.895 MB / 0.5138 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001839/1.245, allocations: 1.172 MB / 0.6733 GB, free: 8.711 MB / 0.5138 GB
Notification: Performance of setup shared object (initialization): time 0.000136/1.245, allocations: 301.1 kB / 0.6736 GB, free: 8.414 MB / 0.5138 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.004354/1.249, allocations: 2.596 MB / 0.6761 GB, free: 5.812 MB / 0.5138 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.006696/1.256, allocations: 5.09 MB / 0.6811 GB, free: 15.59 MB / 0.5294 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/1.269, allocations: 8.353 MB / 0.6892 GB, free: 6.395 MB / 0.5294 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.275e-05/1.269, allocations: 24 kB / 0.6893 GB, free: 6.371 MB / 0.5294 GB
Notification: Performance of matching and sorting (n=769) (initialization): time 0.01715/1.286, allocations: 8.654 MB / 0.6977 GB, free: 14.21 MB / 0.545 GB
Notification: Performance of prepare postOptimizeDAE: time 7.369e-05/1.286, allocations: 44 kB / 0.6977 GB, free: 14.16 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/1.286, allocations: 80 kB / 0.6978 GB, free: 14.09 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0025/1.289, allocations: 0.8534 MB / 0.6987 GB, free: 13.23 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005229/1.294, allocations: 1.369 MB / 0.7 GB, free: 11.96 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/1.306, allocations: 7.588 MB / 0.7074 GB, free: 4.309 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00436/1.311, allocations: 331.5 kB / 0.7077 GB, free: 3.984 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008778/1.312, allocations: 312 kB / 0.708 GB, free: 3.68 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.006109/1.318, allocations: 3.515 MB / 0.7115 GB, free: 260 kB / 0.545 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/1.319, allocations: 425.5 kB / 0.7119 GB, free: 15.83 MB / 0.5607 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0112/1.33, allocations: 5.967 MB / 0.7177 GB, free: 9.859 MB / 0.5607 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.095e-05/1.33, allocations: 40 kB / 0.7177 GB, free: 9.82 MB / 0.5607 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/1.33, allocations: 8 kB / 0.7177 GB, free: 9.812 MB / 0.5607 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-05/1.33, allocations: 19.92 kB / 0.7177 GB, free: 9.793 MB / 0.5607 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02774/1.358, allocations: 14.97 MB / 0.7324 GB, free: 10.9 MB / 0.5763 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/1.358, allocations: 4 kB / 0.7324 GB, free: 10.89 MB / 0.5763 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002766/1.361, allocations: 0.6921 MB / 0.7331 GB, free: 10.24 MB / 0.5763 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002111/1.363, allocations: 0.7134 MB / 0.7337 GB, free: 9.523 MB / 0.5763 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002733/1.363, allocations: 91.97 kB / 0.7338 GB, free: 9.434 MB / 0.5763 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/1.373, allocations: 6.616 MB / 0.7403 GB, free: 2.73 MB / 0.5763 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/1.373, allocations: 7.938 kB / 0.7403 GB, free: 2.723 MB / 0.5763 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01494/1.388, allocations: 8.771 MB / 0.7489 GB, free: 9.863 MB / 0.5919 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.002463/1.391, allocations: 0.8559 MB / 0.7497 GB, free: 9.008 MB / 0.5919 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006084/1.391, allocations: 79.89 kB / 0.7498 GB, free: 8.93 MB / 0.5919 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001807/1.393, allocations: 179.8 kB / 0.75 GB, free: 8.754 MB / 0.5919 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005618/1.394, allocations: 290.3 kB / 0.7502 GB, free: 8.473 MB / 0.5919 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002477/1.394, allocations: 120 kB / 0.7503 GB, free: 8.355 MB / 0.5919 GB
Notification: Performance of sorting global known variables: time 0.004073/1.398, allocations: 2.416 MB / 0.7527 GB, free: 5.953 MB / 0.5919 GB
Notification: Performance of sort global known variables: time 8e-08/1.398, allocations: 0 / 0.7527 GB, free: 5.953 MB / 0.5919 GB
Notification: Performance of remove unused functions: time 0.00587/1.404, allocations: 1.549 MB / 0.7542 GB, free: 4.406 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.0006721/1.404, allocations: 264.5 kB / 0.7545 GB, free: 4.176 MB / 0.5919 GB
Notification: Performance of simCode: created initialization part: time 0.2029/1.607, allocations: 6.275 MB / 0.7606 GB, free: 233.2 MB / 0.5919 GB
Notification: Performance of simCode: created event and clocks part: time 8.015e-06/1.607, allocations: 0 / 0.7606 GB, free: 233.2 MB / 0.5919 GB
Notification: Performance of simCode: created simulation system equations: time 0.00438/1.612, allocations: 2.741 MB / 0.7633 GB, free: 233 MB / 0.5919 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00591/1.618, allocations: 0.9702 MB / 0.7642 GB, free: 232.9 MB / 0.5919 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02435/1.642, allocations: 16.01 MB / 0.7799 GB, free: 226.1 MB / 0.5919 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005739/1.648, allocations: 5.975 MB / 0.7857 GB, free: 223.9 MB / 0.5919 GB
Notification: Performance of simCode: alias equations: time 0.004213/1.652, allocations: 1.888 MB / 0.7875 GB, free: 223.4 MB / 0.5919 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/1.653, allocations: 363.8 kB / 0.7879 GB, free: 223 MB / 0.5919 GB
Notification: Performance of SimCode: time 1.012e-06/1.653, allocations: 0 / 0.7879 GB, free: 223 MB / 0.5919 GB
Notification: Performance of Templates: time 0.09479/1.748, allocations: 65.79 MB / 0.8521 GB, free: 159 MB / 0.5919 GB
"
[Timeout remaining time 658]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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: 8.033542873337865]