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.0009656/0.0009657, allocations: 174.5 kB / 13.63 MB, free: 1.684 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.305/1.305, allocations: 221.4 MB / 235.5 MB, free: 2.926 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.0008119/0.0008119, allocations: 90.52 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.272e-05/2.277e-05, allocations: 4 kB / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07784/0.07788, allocations: 50.41 MB / 394.2 MB, free: 1.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2797/0.3576, allocations: 111.7 MB / 0.4941 GB, free: 7.824 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.3579, allocations: 87.78 kB / 0.4942 GB, free: 7.742 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3623/0.7202, allocations: 70.75 MB / 0.5632 GB, free: 99.51 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.7202, allocations: 0 / 0.5632 GB, free: 99.51 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001281/0.7203, allocations: 64.44 kB / 0.5633 GB, free: 99.51 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.003408/0.7237, allocations: 2.414 MB / 0.5657 GB, free: 98.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.7238, allocations: 9.625 kB / 0.5657 GB, free: 98.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001414/0.7252, allocations: 482.4 kB / 0.5661 GB, free: 98.17 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003103/0.7283, allocations: 1.878 MB / 0.568 GB, free: 97.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.7285, allocations: 193.8 kB / 0.5681 GB, free: 97.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003292/0.7288, allocations: 259.5 kB / 0.5684 GB, free: 97.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003747/0.7326, allocations: 2.367 MB / 0.5707 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.816e-05/0.7326, allocations: 14.34 kB / 0.5707 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001851/0.7328, allocations: 106.2 kB / 0.5708 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.314e-05/0.7329, allocations: 67.03 kB / 0.5709 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002675/0.7356, allocations: 1.547 MB / 0.5724 GB, free: 97.26 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.7457, allocations: 10.75 MB / 0.5829 GB, free: 92.06 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000848/0.7466, allocations: 0.9295 MB / 0.5838 GB, free: 91.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003905/0.747, allocations: 337.5 kB / 0.5841 GB, free: 91.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.804e-05/0.747, allocations: 15.94 kB / 0.5841 GB, free: 91.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.7471, allocations: 43 kB / 0.5842 GB, free: 91.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=83): time 2.835e-06/0.7471, allocations: 4 kB / 0.5842 GB, free: 91.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=92): time 0.002972/0.7501, allocations: 2.241 MB / 0.5864 GB, free: 89.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/0.7501, allocations: 166.2 kB / 0.5865 GB, free: 89.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/0.752, allocations: 1.822 MB / 0.5883 GB, free: 88.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.7521, allocations: 41.67 kB / 0.5883 GB, free: 88.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006305/0.7527, allocations: 1.466 MB / 0.5898 GB, free: 87.77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.7529, allocations: 343.1 kB / 0.5901 GB, free: 87.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.821e-05/0.7529, allocations: 38.81 kB / 0.5901 GB, free: 87.49 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.846e-05/0.753, allocations: 375.4 kB / 0.5905 GB, free: 87.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004424/0.7535, allocations: 331.2 kB / 0.5908 GB, free: 87.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007047/0.7542, allocations: 1.212 MB / 0.592 GB, free: 85.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006655/0.7548, allocations: 0.5507 MB / 0.5925 GB, free: 85.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.7549, allocations: 7.781 kB / 0.5925 GB, free: 85.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002149/0.757, allocations: 1.793 MB / 0.5943 GB, free: 84.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001815/0.7588, allocations: 12.47 MB / 0.6065 GB, free: 71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/0.7589, allocations: 30.66 kB / 0.6065 GB, free: 71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004733/0.7594, allocations: 176 kB / 0.6067 GB, free: 70.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.7605, allocations: 426.4 kB / 0.6071 GB, free: 70.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.7632, allocations: 5.539 MB / 0.6125 GB, free: 65.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.7646, allocations: 98.09 kB / 0.6126 GB, free: 65.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.783e-05/0.7647, allocations: 95.97 kB / 0.6127 GB, free: 65.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.542e-06/0.7648, allocations: 3.344 kB / 0.6127 GB, free: 65.38 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001844/0.7666, allocations: 1.563 MB / 0.6142 GB, free: 64.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.7666, allocations: 29.53 kB / 0.6142 GB, free: 64.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003516/0.767, allocations: 163.8 kB / 0.6144 GB, free: 64.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.7681, allocations: 416.9 kB / 0.6148 GB, free: 64.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002474/0.7705, allocations: 5.536 MB / 0.6202 GB, free: 59.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/0.7717, allocations: 91.03 kB / 0.6203 GB, free: 59.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.467e-05/0.7718, allocations: 94.59 kB / 0.6204 GB, free: 59.1 MB / 426.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 () * 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.0001839/0.772, allocations: 231.7 kB / 0.6206 GB, free: 58.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/0.7722, allocations: 230 kB / 0.6208 GB, free: 58.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.7735, allocations: 0.8931 MB / 0.6217 GB, free: 58.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.7735, allocations: 8.938 kB / 0.6217 GB, free: 58.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.7736, allocations: 3.688 kB / 0.6217 GB, free: 58.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.7736, allocations: 3.703 kB / 0.6217 GB, free: 58.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003526/0.7771, allocations: 3.054 MB / 0.6247 GB, free: 56.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.7771, allocations: 6.75 kB / 0.6247 GB, free: 56.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005632/0.7777, allocations: 160.4 kB / 0.6248 GB, free: 56.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003361/0.778, allocations: 133.1 kB / 0.625 GB, free: 56.74 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.007e-05/0.7781, allocations: 19.84 kB / 0.625 GB, free: 56.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002379/0.7805, allocations: 5.36 MB / 0.6302 GB, free: 51.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/0.7805, allocations: 17.5 kB / 0.6302 GB, free: 51.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.782, allocations: 1.876 MB / 0.6321 GB, free: 49.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004759/0.7825, allocations: 385.7 kB / 0.6324 GB, free: 49.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/0.7827, allocations: 26.22 kB / 0.6325 GB, free: 49.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000825/0.7836, allocations: 62.09 kB / 0.6325 GB, free: 49.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.391e-05/0.7837, allocations: 80.58 kB / 0.6326 GB, free: 49.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.9e-05/0.7837, allocations: 29.44 kB / 0.6326 GB, free: 49.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001484/0.7852, allocations: 1.336 MB / 0.6339 GB, free: 48.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7852, allocations: 3.781 kB / 0.6339 GB, free: 48.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002587/0.7878, allocations: 1.003 MB / 0.6349 GB, free: 48.89 MB / 426.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 () * 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.0005501/0.7884, allocations: 0.5231 MB / 0.6354 GB, free: 48.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.791, allocations: 2.715 MB / 0.6381 GB, free: 47.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.791, allocations: 0 / 0.6381 GB, free: 47.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006802/0.7917, allocations: 0.7996 MB / 0.6389 GB, free: 46.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/0.7937, allocations: 0.5558 MB / 0.6394 GB, free: 46.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004125/0.7978, allocations: 3.193 MB / 0.6425 GB, free: 44.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008276/0.7987, allocations: 1.631 MB / 0.6441 GB, free: 43.92 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001675/0.8004, allocations: 405.9 kB / 0.6445 GB, free: 43.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.8005, allocations: 110.5 kB / 0.6446 GB, free: 43.82 MB / 426.7 MB Notification: Performance of SimCode: time 4.51e-07/0.8005, allocations: 4 kB / 0.6446 GB, free: 43.81 MB / 426.7 MB Notification: Performance of Templates: time 0.0417/0.8422, allocations: 33.74 MB / 0.6776 GB, free: 17.4 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/jenkins/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