Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008754/0.0008754, allocations: 200.5 kB / 17.06 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 226.6 MB / 244.3 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008682/0.0008681, allocations: 93.59 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002389/0.0002387, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2084, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.0103/0.2188, allocations: 16.75 MB / 424.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007592/0.2264, allocations: 5.381 MB / 429.6 MB, free: 5.652 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002032/0.2285, allocations: 67.81 kB / 429.7 MB, free: 5.586 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002335/0.2308, allocations: 1.052 MB / 430.7 MB, free: 4.527 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002413/0.2332, allocations: 0.9887 MB / 431.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009772/0.2342, allocations: 430.5 kB / 432.2 MB, free: 3.113 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002895/0.2371, allocations: 3.536 MB / 435.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00156/0.2387, allocations: 1.171 MB / 436.9 MB, free: 14.35 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001837/0.2405, allocations: 1.167 MB / 438 MB, free: 13.18 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001433/0.242, allocations: 1.302 MB / 439.3 MB, free: 11.87 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002778/0.2423, allocations: 176 kB / 439.5 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005019/0.2428, allocations: 208 kB / 439.7 MB, free: 11.49 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003367/0.2431, allocations: 0.4937 MB / 440.2 MB, free: 11 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006205/0.2438, allocations: 0.6445 MB / 440.8 MB, free: 10.34 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002848/0.2466, allocations: 3.622 MB / 444.5 MB, free: 6.711 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.2466, allocations: 0 / 444.5 MB, free: 6.711 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2466, allocations: 7.938 kB / 444.5 MB, free: 6.703 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.368e-05/0.2467, allocations: 0 / 444.5 MB, free: 6.703 MB / 314.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.00457/0.2513, allocations: 2.833 MB / 447.3 MB, free: 3.809 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.2513, allocations: 8.031 kB / 447.3 MB, free: 3.801 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/0.2528, allocations: 487.7 kB / 447.8 MB, free: 3.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002398/0.2552, allocations: 1.646 MB / 449.4 MB, free: 1.621 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001169/0.2554, allocations: 193.2 kB / 449.6 MB, free: 1.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002861/0.2556, allocations: 263.9 kB / 449.9 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003859/0.2595, allocations: 2.454 MB / 452.3 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.769e-05/0.2596, allocations: 19.75 kB / 452.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001794/0.2598, allocations: 112 kB / 452.5 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.393e-05/0.2598, allocations: 64 kB / 452.5 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002816/0.2627, allocations: 1.635 MB / 454.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01205/0.2747, allocations: 10.69 MB / 464.9 MB, free: 1.488 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.276, allocations: 1.061 MB / 465.9 MB, free: 336 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005673/0.2766, allocations: 379.1 kB / 466.3 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.2766, allocations: 8.656 kB / 466.3 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.2767, allocations: 51.17 kB / 466.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 2.995e-06/0.2767, allocations: 4 kB / 466.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.004805/0.2815, allocations: 2.953 MB / 469.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.802e-05/0.2816, allocations: 167.2 kB / 469.5 MB, free: 12.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002688/0.2843, allocations: 2.178 MB / 471.6 MB, free: 10.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.889e-05/0.2843, allocations: 41.7 kB / 471.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009387/0.2853, allocations: 1.47 MB / 473.2 MB, free: 8.859 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002214/0.2855, allocations: 331.4 kB / 473.5 MB, free: 8.531 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.555e-05/0.2856, allocations: 36 kB / 473.5 MB, free: 8.496 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.2857, allocations: 381.9 kB / 473.9 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006373/0.2864, allocations: 359.8 kB / 474.2 MB, free: 7.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.2875, allocations: 1.242 MB / 475.5 MB, free: 6.102 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008823/0.2884, allocations: 0.5768 MB / 476.1 MB, free: 5.527 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.2885, allocations: 8 kB / 476.1 MB, free: 5.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002771/0.2912, allocations: 1.839 MB / 477.9 MB, free: 3.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005755/0.2918, allocations: 0.9569 MB / 478.9 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-05/0.2919, allocations: 28 kB / 478.9 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005042/0.2924, allocations: 171.2 kB / 479.1 MB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.2935, allocations: 419.3 kB / 479.5 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003504/0.297, allocations: 5.349 MB / 484.8 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.2984, allocations: 99.91 kB / 484.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.2985, allocations: 96 kB / 485 MB, free: 11.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.472e-06/0.2986, allocations: 4 kB / 485 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002314/0.3009, allocations: 1.574 MB / 486.6 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.848e-05/0.3009, allocations: 28 kB / 486.6 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004041/0.3013, allocations: 163.9 kB / 486.8 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.3024, allocations: 411.2 kB / 487.2 MB, free: 9.398 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003394/0.3058, allocations: 5.343 MB / 492.5 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/0.3072, allocations: 84.11 kB / 492.6 MB, free: 3.441 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.3073, allocations: 92 kB / 492.7 MB, free: 3.352 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * 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%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009451/0.3083, allocations: 0.5862 MB / 493.3 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002752/0.3085, allocations: 233.1 kB / 493.5 MB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001483/0.31, allocations: 0.9303 MB / 494.4 MB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3101, allocations: 8 kB / 494.4 MB, free: 1.562 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3101, allocations: 4 kB / 494.4 MB, free: 1.559 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3101, allocations: 7.984 kB / 494.5 MB, free: 1.551 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004288/0.3144, allocations: 3.128 MB / 497.6 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.3144, allocations: 7.984 kB / 497.6 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005852/0.315, allocations: 171.8 kB / 497.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003693/0.3154, allocations: 127.4 kB / 497.9 MB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.865e-05/0.3154, allocations: 20 kB / 497.9 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003445/0.3189, allocations: 5.305 MB / 0.4914 GB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.3189, allocations: 8 kB / 0.4914 GB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.3211, allocations: 1.514 MB / 0.4929 GB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000614/0.3217, allocations: 386.1 kB / 0.4933 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/0.3219, allocations: 24 kB / 0.4933 GB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008307/0.3227, allocations: 63.95 kB / 0.4933 GB, free: 6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.3228, allocations: 84.3 kB / 0.4934 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.306e-05/0.3229, allocations: 32 kB / 0.4935 GB, free: 5.887 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001963/0.3249, allocations: 1.434 MB / 0.4949 GB, free: 4.441 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.304e-06/0.3249, allocations: 0 / 0.4949 GB, free: 4.441 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002531/0.3274, allocations: 0.9374 MB / 0.4958 GB, free: 3.504 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.phi) * 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 (82): * Single equations (assignments): 78 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002754/0.3277, allocations: 154.9 kB / 0.4959 GB, free: 3.344 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003678/0.3314, allocations: 2.692 MB / 0.4986 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.3314, allocations: 8.875 kB / 0.4986 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1608/0.4922, allocations: 0.8174 MB / 0.4994 GB, free: 87.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00411/0.4964, allocations: 0.5715 MB / 0.4999 GB, free: 87.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006584/0.503, allocations: 5.15 MB / 0.5049 GB, free: 84.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009184/0.5039, allocations: 1.57 MB / 0.5065 GB, free: 83.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004242/0.5044, allocations: 155.4 kB / 0.5066 GB, free: 83.89 MB / 378.7 MB Notification: Performance of SimCode: time 8.51e-07/0.5044, allocations: 0 / 0.5066 GB, free: 83.89 MB / 378.7 MB Notification: Performance of Templates: time 0.05563/0.56, allocations: 78.26 MB / 0.583 GB, free: 12.99 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches