Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 221.5 MB / 230.3 MB, free: 7.547 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008692/0.0008692, allocations: 110.3 kB / 281.2 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.216e-05/2.227e-05, allocations: 0 / 337 MB, free: 10 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1296, allocations: 50.42 MB / 387.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4279/0.5575, allocations: 107 MB / 494.4 MB, free: 3.797 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.5578, allocations: 85.83 kB / 494.5 MB, free: 3.715 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1453/0.7031, allocations: 57.4 MB / 0.539 GB, free: 9.887 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.7032, allocations: 0 / 0.539 GB, free: 9.887 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000232/0.7034, allocations: 87.81 kB / 0.5391 GB, free: 9.801 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.006705/0.7101, allocations: 2.888 MB / 0.5419 GB, free: 6.852 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.7102, allocations: 12.03 kB / 0.5419 GB, free: 6.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001418/0.7116, allocations: 411.5 kB / 0.5423 GB, free: 6.434 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004184/0.7158, allocations: 2.047 MB / 0.5443 GB, free: 4.332 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.7159, allocations: 88 kB / 0.5444 GB, free: 4.246 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005217/0.7165, allocations: 171.9 kB / 0.5446 GB, free: 4.078 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005052/0.7215, allocations: 2.823 MB / 0.5473 GB, free: 1.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2132/0.9347, allocations: 3.326 MB / 0.5506 GB, free: 98.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001812/0.9349, allocations: 9.031 kB / 0.5506 GB, free: 98.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009108/0.9359, allocations: 7.641 kB / 0.5506 GB, free: 98.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001614/0.9361, allocations: 115.9 kB / 0.5507 GB, free: 98.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02027/0.9563, allocations: 11.21 MB / 0.5616 GB, free: 95.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002667/0.959, allocations: 3.588 MB / 0.5651 GB, free: 93.15 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.9606, allocations: 1.091 MB / 0.5662 GB, free: 93.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002769/0.9609, allocations: 135.9 kB / 0.5663 GB, free: 93.04 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.9609, allocations: 51.28 kB / 0.5664 GB, free: 93 MB / 426.7 MB Notification: Performance of pre-optimization done (n=139): time 3.437e-06/0.9609, allocations: 0 / 0.5664 GB, free: 93 MB / 426.7 MB Notification: Performance of matching and sorting (n=160): time 0.009922/0.9708, allocations: 5.597 MB / 0.5718 GB, free: 92.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.9709, allocations: 68.66 kB / 0.5719 GB, free: 92.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002237/0.9731, allocations: 1.493 MB / 0.5734 GB, free: 91.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001677/0.9733, allocations: 30.2 kB / 0.5734 GB, free: 91.85 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007321/0.9741, allocations: 1.372 MB / 0.5747 GB, free: 91.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003785/0.9745, allocations: 0.5179 MB / 0.5752 GB, free: 90.97 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.881e-05/0.9745, allocations: 0 / 0.5752 GB, free: 90.97 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.397e-05/0.9746, allocations: 376.9 kB / 0.5756 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.9757, allocations: 0.8488 MB / 0.5764 GB, free: 90.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001086/0.9768, allocations: 1.286 MB / 0.5777 GB, free: 90.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.9779, allocations: 1.082 MB / 0.5787 GB, free: 89.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.016e-06/0.9779, allocations: 6.531 kB / 0.5788 GB, free: 89.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.00452/0.9825, allocations: 3.151 MB / 0.5818 GB, free: 88.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.9825, allocations: 11.81 kB / 0.5818 GB, free: 88.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/0.9826, allocations: 18.41 kB / 0.5819 GB, free: 88.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00236/0.9849, allocations: 1.011 MB / 0.5828 GB, free: 88.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.986, allocations: 328.6 kB / 0.5832 GB, free: 88.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/0.9985, allocations: 18.46 MB / 0.6012 GB, free: 73.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/1, allocations: 68.16 kB / 0.6013 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/1, allocations: 67.34 kB / 0.6013 GB, free: 73.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003099/1.001, allocations: 162.7 kB / 0.6015 GB, free: 73.67 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00029/1.001, allocations: 202.3 kB / 0.6017 GB, free: 73.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0038/1.005, allocations: 2.625 MB / 0.6042 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/1.005, allocations: 17.34 kB / 0.6042 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/1.005, allocations: 9.719 kB / 0.6043 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/1.005, allocations: 10.28 kB / 0.6043 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007617/1.013, allocations: 5.479 MB / 0.6096 GB, free: 70.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/1.013, allocations: 1.844 kB / 0.6096 GB, free: 70.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006881/1.013, allocations: 185.5 kB / 0.6098 GB, free: 70.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/1.015, allocations: 0.9024 MB / 0.6107 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.598e-05/1.015, allocations: 13.23 kB / 0.6107 GB, free: 70.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01037/1.026, allocations: 16.44 MB / 0.6267 GB, free: 56.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/1.026, allocations: 6.969 kB / 0.6267 GB, free: 56.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004691/1.03, allocations: 3.953 MB / 0.6306 GB, free: 55.13 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008073/1.031, allocations: 473.8 kB / 0.6311 GB, free: 54.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002439/1.031, allocations: 7.188 kB / 0.6311 GB, free: 54.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009715/1.032, allocations: 94.31 kB / 0.6312 GB, free: 54.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/1.033, allocations: 143.3 kB / 0.6313 GB, free: 54.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.891e-05/1.033, allocations: 50.58 kB / 0.6313 GB, free: 54.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001253/1.034, allocations: 1.108 MB / 0.6324 GB, free: 54.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.034, allocations: 1.812 kB / 0.6324 GB, free: 54.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002059/1.036, allocations: 0.6286 MB / 0.633 GB, free: 54.35 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005119/1.037, allocations: 386.1 kB / 0.6334 GB, free: 54.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003643/1.04, allocations: 3.351 MB / 0.6367 GB, free: 52.33 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/1.04, allocations: 0 / 0.6367 GB, free: 52.33 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002112/1.042, allocations: 2.128 MB / 0.6388 GB, free: 50.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/1.045, allocations: 0.528 MB / 0.6393 GB, free: 50.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006808/1.052, allocations: 4.465 MB / 0.6436 GB, free: 48.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/1.054, allocations: 2.359 MB / 0.6459 GB, free: 46.73 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001345/1.055, allocations: 455 kB / 0.6464 GB, free: 46.42 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002793/1.055, allocations: 127.1 kB / 0.6465 GB, free: 46.3 MB / 426.7 MB Notification: Performance of SimCode: time 6.31e-07/1.055, allocations: 4 kB / 0.6465 GB, free: 46.29 MB / 426.7 MB Notification: Performance of Templates: time 0.04663/1.102, allocations: 33.39 MB / 0.6791 GB, free: 19.01 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches