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.001264/0.001265, allocations: 180.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 223.2 MB / 240.3 MB, free: 11.86 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000933/0.000933, allocations: 98.78 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002571/0.0002572, allocations: 8 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2551, allocations: 50.4 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1272/0.3824, allocations: 107.7 MB / 0.4973 GB, free: 4.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.3827, allocations: 95.94 kB / 0.4974 GB, free: 4.637 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3267/0.7094, allocations: 58.09 MB / 0.5541 GB, free: 60.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.7094, allocations: 0 / 0.5541 GB, free: 60.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002158/0.7096, allocations: 79.92 kB / 0.5542 GB, free: 59.99 MB / 378.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.006853/0.7165, allocations: 3.232 MB / 0.5573 GB, free: 56.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.7166, allocations: 12.03 kB / 0.5574 GB, free: 56.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/0.7177, allocations: 411.6 kB / 0.5577 GB, free: 56.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003701/0.7214, allocations: 2.055 MB / 0.5598 GB, free: 54.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.7215, allocations: 217.7 kB / 0.56 GB, free: 53.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003589/0.7219, allocations: 279.9 kB / 0.5602 GB, free: 53.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005672/0.7276, allocations: 3.801 MB / 0.5639 GB, free: 49.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.638e-05/0.7277, allocations: 7.938 kB / 0.5639 GB, free: 49.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002541/0.728, allocations: 120 kB / 0.5641 GB, free: 49.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.073e-05/0.7281, allocations: 121.5 kB / 0.5642 GB, free: 49.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004719/0.7328, allocations: 3.059 MB / 0.5672 GB, free: 46.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/0.7506, allocations: 11.77 MB / 0.5787 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00234/0.753, allocations: 3.679 MB / 0.5823 GB, free: 30.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000271/0.7533, allocations: 142.3 kB / 0.5824 GB, free: 30.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.7533, allocations: 51.91 kB / 0.5824 GB, free: 30 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 4.408e-06/0.7534, allocations: 0 / 0.5824 GB, free: 30 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.01413/0.7675, allocations: 8.356 MB / 0.5906 GB, free: 21.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.7675, allocations: 76.67 kB / 0.5907 GB, free: 21.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002161/0.7697, allocations: 1.804 MB / 0.5924 GB, free: 19.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.7698, allocations: 53.7 kB / 0.5925 GB, free: 19.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006018/0.7704, allocations: 1.351 MB / 0.5938 GB, free: 18.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002781/0.7707, allocations: 0.5353 MB / 0.5943 GB, free: 17.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-05/0.7708, allocations: 40 kB / 0.5944 GB, free: 17.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.342e-05/0.7709, allocations: 377.9 kB / 0.5947 GB, free: 17.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.772, allocations: 0.9251 MB / 0.5956 GB, free: 16.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.7732, allocations: 1.363 MB / 0.597 GB, free: 14.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.7744, allocations: 1.142 MB / 0.5981 GB, free: 13.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.7745, allocations: 4 kB / 0.5981 GB, free: 13.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004667/0.7791, allocations: 3.431 MB / 0.6014 GB, free: 9.996 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/0.7792, allocations: 18.8 kB / 0.6015 GB, free: 9.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.7792, allocations: 12 kB / 0.6015 GB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002402/0.7816, allocations: 1.035 MB / 0.6025 GB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.7827, allocations: 331.5 kB / 0.6028 GB, free: 8.578 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01621/0.7989, allocations: 19.62 MB / 0.622 GB, free: 3.625 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/0.8008, allocations: 103.9 kB / 0.6221 GB, free: 3.523 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001795/0.801, allocations: 76 kB / 0.6221 GB, free: 3.449 MB / 394.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 () * Number of clocked 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%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002081/0.8031, allocations: 0.9383 MB / 0.623 GB, free: 2.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005814/0.8037, allocations: 225.3 kB / 0.6233 GB, free: 2.277 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004686/0.8084, allocations: 2.853 MB / 0.626 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/0.8084, allocations: 16 kB / 0.6261 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.8084, allocations: 8 kB / 0.6261 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.8084, allocations: 7.969 kB / 0.6261 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.8185, allocations: 6.049 MB / 0.632 GB, free: 9.156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.8185, allocations: 4 kB / 0.632 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000746/0.8193, allocations: 187.7 kB / 0.6322 GB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00232/0.8216, allocations: 0.9366 MB / 0.6331 GB, free: 8.004 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.8217, allocations: 35.94 kB / 0.6331 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01568/0.8374, allocations: 17.5 MB / 0.6502 GB, free: 5.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.8375, allocations: 8 kB / 0.6502 GB, free: 5.262 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006246/0.8437, allocations: 4.207 MB / 0.6543 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/0.8453, allocations: 498.3 kB / 0.6548 GB, free: 400 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002784/0.8456, allocations: 35.94 kB / 0.6548 GB, free: 364 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.8466, allocations: 120 kB / 0.6549 GB, free: 244 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003739/0.847, allocations: 153 kB / 0.6551 GB, free: 92 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-05/0.8471, allocations: 40 kB / 0.6551 GB, free: 52 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002138/0.8493, allocations: 1.369 MB / 0.6565 GB, free: 14.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8493, allocations: 4 kB / 0.6565 GB, free: 14.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002489/0.8518, allocations: 0.7344 MB / 0.6572 GB, free: 13.92 MB / 442.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 () * Number of clocked 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.0006907/0.8525, allocations: 406.4 kB / 0.6576 GB, free: 13.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004907/0.8574, allocations: 3.577 MB / 0.6611 GB, free: 9.809 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.8574, allocations: 4.812 kB / 0.6611 GB, free: 9.805 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002778/0.8602, allocations: 2.295 MB / 0.6633 GB, free: 7.391 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00308/0.8633, allocations: 0.6296 MB / 0.6639 GB, free: 6.758 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2109/1.074, allocations: 6.768 MB / 0.6705 GB, free: 115.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003339/1.078, allocations: 2.363 MB / 0.6728 GB, free: 114.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001666/1.079, allocations: 490.6 kB / 0.6733 GB, free: 114.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/1.08, allocations: 129.1 kB / 0.6734 GB, free: 114.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.223e-06/1.08, allocations: 0 / 0.6734 GB, free: 114.5 MB / 442.7 MB Notification: Performance of Templates: time 0.06212/1.142, allocations: 40.8 MB / 0.7133 GB, free: 107.7 MB / 442.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