Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.00104, allocations: 180 kB / 17.4 MB, free: 4.289 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.322/1.322, allocations: 223.3 MB / 241.4 MB, free: 11.56 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.0008265/0.0008265, allocations: 95.44 kB / 292.6 MB, free: 10.74 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004844/0.0004844, allocations: 15.92 kB / 352.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2253, allocations: 50.39 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1211/0.3464, allocations: 111.9 MB / 0.5026 GB, free: 380 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.3467, allocations: 83.95 kB / 0.5027 GB, free: 296 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3653/0.712, allocations: 70.4 MB / 0.5714 GB, free: 44.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.7121, allocations: 0 / 0.5714 GB, free: 44.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002877/0.7124, allocations: 56 kB / 0.5715 GB, free: 44.01 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005978/0.7184, allocations: 2.767 MB / 0.5742 GB, free: 41.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.7184, allocations: 8.031 kB / 0.5742 GB, free: 41.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001818/0.7202, allocations: 487.7 kB / 0.5746 GB, free: 40.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003682/0.7239, allocations: 1.949 MB / 0.5765 GB, free: 38.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.7241, allocations: 193.2 kB / 0.5767 GB, free: 38.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004203/0.7245, allocations: 263.9 kB / 0.577 GB, free: 38.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004035/0.7285, allocations: 2.458 MB / 0.5794 GB, free: 35.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.981e-05/0.7286, allocations: 15.88 kB / 0.5794 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001945/0.7288, allocations: 112 kB / 0.5795 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.573e-05/0.7289, allocations: 64 kB / 0.5796 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00286/0.7318, allocations: 1.654 MB / 0.5812 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01096/0.7427, allocations: 10.74 MB / 0.5917 GB, free: 22.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.7438, allocations: 1.004 MB / 0.5926 GB, free: 21.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005016/0.7443, allocations: 384.3 kB / 0.593 GB, free: 21.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.217e-05/0.7444, allocations: 24.92 kB / 0.593 GB, free: 21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.7444, allocations: 47.5 kB / 0.5931 GB, free: 20.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.745e-06/0.7444, allocations: 0 / 0.5931 GB, free: 20.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.004267/0.7487, allocations: 3.016 MB / 0.596 GB, free: 17.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.7487, allocations: 171.2 kB / 0.5962 GB, free: 17.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002153/0.7509, allocations: 2.097 MB / 0.5982 GB, free: 15.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.7509, allocations: 41.7 kB / 0.5983 GB, free: 15.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006317/0.7516, allocations: 1.474 MB / 0.5997 GB, free: 13.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.7517, allocations: 335.3 kB / 0.6 GB, free: 13.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-05/0.7518, allocations: 40 kB / 0.6001 GB, free: 13.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.607e-05/0.7519, allocations: 373.9 kB / 0.6004 GB, free: 13.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005666/0.7524, allocations: 375.8 kB / 0.6008 GB, free: 12.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008496/0.7533, allocations: 1.264 MB / 0.602 GB, free: 11.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.7548, allocations: 1.765 MB / 0.6037 GB, free: 8.945 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.7548, allocations: 11.94 kB / 0.6038 GB, free: 8.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002627/0.7575, allocations: 1.881 MB / 0.6056 GB, free: 7.035 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004117/0.7579, allocations: 0.9767 MB / 0.6065 GB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.7579, allocations: 32 kB / 0.6066 GB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004949/0.7584, allocations: 167.3 kB / 0.6067 GB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.7595, allocations: 419.2 kB / 0.6071 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003045/0.7626, allocations: 5.55 MB / 0.6126 GB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/0.7642, allocations: 103.9 kB / 0.6127 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.7643, allocations: 95.98 kB / 0.6127 GB, free: 14.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.484e-06/0.7643, allocations: 4 kB / 0.6127 GB, free: 14.74 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002457/0.7668, allocations: 1.62 MB / 0.6143 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.137e-05/0.7668, allocations: 35.98 kB / 0.6144 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004305/0.7672, allocations: 160.1 kB / 0.6145 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.7684, allocations: 415.3 kB / 0.6149 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004208/0.7726, allocations: 5.557 MB / 0.6203 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/0.7743, allocations: 83.88 kB / 0.6204 GB, free: 6.328 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.7745, allocations: 96 kB / 0.6205 GB, free: 6.234 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * 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 (226): * Single equations (assignments): 222 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001296/0.7758, allocations: 0.5862 MB / 0.6211 GB, free: 5.637 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004561/0.7763, allocations: 229.2 kB / 0.6213 GB, free: 5.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.7781, allocations: 0.9536 MB / 0.6222 GB, free: 4.438 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.7782, allocations: 15.98 kB / 0.6222 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.7782, allocations: 4 kB / 0.6223 GB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.7782, allocations: 3.984 kB / 0.6223 GB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005619/0.7838, allocations: 3.124 MB / 0.6253 GB, free: 1.152 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.7838, allocations: 8 kB / 0.6253 GB, free: 1.145 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006092/0.7845, allocations: 159.8 kB / 0.6255 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004314/0.7849, allocations: 131.7 kB / 0.6256 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.976e-05/0.785, allocations: 31.92 kB / 0.6256 GB, free: 0.8164 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00381/0.7888, allocations: 5.363 MB / 0.6309 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.7888, allocations: 11.94 kB / 0.6309 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00247/0.7913, allocations: 1.535 MB / 0.6324 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009965/0.7923, allocations: 378.2 kB / 0.6327 GB, free: 8.871 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005672/0.7929, allocations: 31.98 kB / 0.6328 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.794, allocations: 51.97 kB / 0.6328 GB, free: 8.789 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.7942, allocations: 80.34 kB / 0.6329 GB, free: 8.711 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.203e-05/0.7942, allocations: 32 kB / 0.6329 GB, free: 8.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002599/0.7968, allocations: 1.368 MB / 0.6343 GB, free: 7.301 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7968, allocations: 4 kB / 0.6343 GB, free: 7.297 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003894/0.8008, allocations: 1.012 MB / 0.6352 GB, free: 6.285 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * 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 (83): * Single equations (assignments): 79 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000767/0.8015, allocations: 0.5045 MB / 0.6357 GB, free: 5.781 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004193/0.8057, allocations: 2.767 MB / 0.6384 GB, free: 2.926 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.8058, allocations: 0 / 0.6384 GB, free: 2.926 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.8069, allocations: 0.8393 MB / 0.6393 GB, free: 2.035 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005598/0.8125, allocations: 0.5576 MB / 0.6398 GB, free: 1.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009101/0.8216, allocations: 5.103 MB / 0.6448 GB, free: 12.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001832/0.8235, allocations: 1.564 MB / 0.6463 GB, free: 10.68 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001814/0.8253, allocations: 327.4 kB / 0.6466 GB, free: 10.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003792/0.8257, allocations: 135.4 kB / 0.6468 GB, free: 10.22 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/0.8257, allocations: 0 / 0.6468 GB, free: 10.22 MB / 426.7 MB Notification: Performance of Templates: time 0.2439/1.07, allocations: 30.54 MB / 0.6766 GB, free: 88.41 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches