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.001117/0.001117, allocations: 180.3 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.335/1.335, allocations: 223.2 MB / 240.3 MB, free: 11.83 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.000877/0.000877, allocations: 101.4 kB / 291.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002732/0.0002732, allocations: 4 kB / 351.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2518, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.3806, allocations: 111.7 MB / 0.5012 GB, free: 0.668 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.381, allocations: 87.94 kB / 0.5013 GB, free: 0.582 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3814/0.7624, allocations: 70.67 MB / 0.5703 GB, free: 44.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.7625, allocations: 0 / 0.5703 GB, free: 44.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003331/0.7628, allocations: 63.94 kB / 0.5704 GB, free: 44.02 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.007296/0.7701, allocations: 2.795 MB / 0.5731 GB, free: 41.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.7702, allocations: 12.02 kB / 0.5731 GB, free: 41.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002151/0.7723, allocations: 487.7 kB / 0.5736 GB, free: 40.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004226/0.7766, allocations: 1.895 MB / 0.5754 GB, free: 38.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.7767, allocations: 189.2 kB / 0.5756 GB, free: 38.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005611/0.7773, allocations: 259.9 kB / 0.5759 GB, free: 38.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004641/0.782, allocations: 2.439 MB / 0.5782 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001292/0.7821, allocations: 19.88 kB / 0.5783 GB, free: 35.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002732/0.7824, allocations: 108 kB / 0.5784 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.995e-05/0.7825, allocations: 64 kB / 0.5784 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003075/0.7856, allocations: 1.65 MB / 0.58 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01328/0.7989, allocations: 10.75 MB / 0.5905 GB, free: 22.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.8001, allocations: 0.996 MB / 0.5915 GB, free: 21.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.066e-05/0.8001, allocations: 9 kB / 0.5915 GB, free: 21.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.8002, allocations: 47.5 kB / 0.5916 GB, free: 21.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 3.457e-06/0.8002, allocations: 4 kB / 0.5916 GB, free: 21.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.005611/0.8058, allocations: 3.02 MB / 0.5945 GB, free: 18.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.8059, allocations: 167.2 kB / 0.5947 GB, free: 18.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003422/0.8093, allocations: 1.839 MB / 0.5965 GB, free: 16.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.61e-05/0.8094, allocations: 41.7 kB / 0.5965 GB, free: 16.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009007/0.8103, allocations: 1.478 MB / 0.5979 GB, free: 14.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003036/0.8106, allocations: 339.3 kB / 0.5983 GB, free: 14.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-05/0.8107, allocations: 40 kB / 0.5983 GB, free: 14.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.8108, allocations: 373.9 kB / 0.5987 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006296/0.8115, allocations: 371.8 kB / 0.599 GB, free: 13.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009357/0.8124, allocations: 1.264 MB / 0.6003 GB, free: 11.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008686/0.8133, allocations: 0.5835 MB / 0.6008 GB, free: 11.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-05/0.8133, allocations: 8 kB / 0.6008 GB, free: 11.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002751/0.8161, allocations: 1.877 MB / 0.6027 GB, free: 9.363 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00299/0.8191, allocations: 12.48 MB / 0.6149 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-05/0.8191, allocations: 28 kB / 0.6149 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005964/0.8198, allocations: 175.3 kB / 0.615 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.821, allocations: 419.2 kB / 0.6154 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004079/0.8251, allocations: 5.589 MB / 0.6209 GB, free: 4.785 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/0.8269, allocations: 91.98 kB / 0.621 GB, free: 4.695 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.8271, allocations: 103.9 kB / 0.6211 GB, free: 4.594 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.325e-06/0.8271, allocations: 4 kB / 0.6211 GB, free: 4.59 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002562/0.8296, allocations: 1.617 MB / 0.6227 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-05/0.8297, allocations: 36 kB / 0.6227 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004735/0.8302, allocations: 171.8 kB / 0.6229 GB, free: 2.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.8313, allocations: 419.2 kB / 0.6233 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00395/0.8353, allocations: 5.573 MB / 0.6287 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.8372, allocations: 83.89 kB / 0.6288 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001561/0.8373, allocations: 92 kB / 0.6289 GB, free: 12.06 MB / 410.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.001233/0.8386, allocations: 0.593 MB / 0.6295 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004394/0.839, allocations: 233.1 kB / 0.6297 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.8408, allocations: 0.9498 MB / 0.6306 GB, free: 10.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.8408, allocations: 8 kB / 0.6306 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.8408, allocations: 4 kB / 0.6306 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.8409, allocations: 3.984 kB / 0.6306 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005005/0.8459, allocations: 3.128 MB / 0.6337 GB, free: 6.973 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.8459, allocations: 4 kB / 0.6337 GB, free: 6.969 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000603/0.8465, allocations: 167.7 kB / 0.6338 GB, free: 6.805 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004835/0.847, allocations: 128.4 kB / 0.634 GB, free: 6.668 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.966e-05/0.8471, allocations: 24 kB / 0.634 GB, free: 6.645 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003848/0.8509, allocations: 5.403 MB / 0.6393 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.756e-06/0.851, allocations: 11.94 kB / 0.6393 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002588/0.8535, allocations: 2.003 MB / 0.6412 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009044/0.8545, allocations: 370.2 kB / 0.6416 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002788/0.8548, allocations: 27.98 kB / 0.6416 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008519/0.8556, allocations: 63.92 kB / 0.6417 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.8558, allocations: 84.34 kB / 0.6418 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.316e-05/0.8558, allocations: 28 kB / 0.6418 GB, free: 13.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002445/0.8583, allocations: 1.368 MB / 0.6431 GB, free: 12.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.8583, allocations: 4 kB / 0.6431 GB, free: 12.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004145/0.8625, allocations: 1.004 MB / 0.6441 GB, free: 11.46 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 () * 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.0008916/0.8634, allocations: 0.5183 MB / 0.6446 GB, free: 10.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004563/0.8679, allocations: 2.755 MB / 0.6473 GB, free: 8.098 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.868, allocations: 0 / 0.6473 GB, free: 8.098 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.8692, allocations: 0.8394 MB / 0.6481 GB, free: 7.207 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003058/0.8723, allocations: 0.5614 MB / 0.6487 GB, free: 6.648 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008336/0.8807, allocations: 5.08 MB / 0.6536 GB, free: 1.465 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2135/1.094, allocations: 1.618 MB / 0.6552 GB, free: 90.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002225/1.096, allocations: 331.6 kB / 0.6555 GB, free: 90.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003846/1.097, allocations: 143.6 kB / 0.6557 GB, free: 90.54 MB / 426.7 MB Notification: Performance of SimCode: time 1.132e-06/1.097, allocations: 0 / 0.6557 GB, free: 90.54 MB / 426.7 MB Notification: Performance of Templates: time 0.05161/1.148, allocations: 30.07 MB / 0.685 GB, free: 89.42 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