Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009872/0.0009872, allocations: 105.8 kB / 18.45 MB, free: 4.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 210.8 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 71.88 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2458, allocations: 50.54 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007628/0.2534, allocations: 7.159 MB / 417.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003622/0.2571, allocations: 2.368 MB / 419.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005738/0.2577, allocations: 19.94 kB / 419.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.2589, allocations: 0.4931 MB / 420 MB, free: 7.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007767/0.2597, allocations: 377 kB / 420.3 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.26, allocations: 203.7 kB / 420.5 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.2611, allocations: 1.199 MB / 421.7 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006238/0.2617, allocations: 0.5115 MB / 422.3 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005696/0.2623, allocations: 478.1 kB / 422.7 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004821/0.2628, allocations: 493.8 kB / 423.2 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.2629, allocations: 116 kB / 423.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.2632, allocations: 156 kB / 423.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001508/0.2634, allocations: 227.1 kB / 423.7 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004188/0.2638, allocations: 0.5482 MB / 424.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.2651, allocations: 1.434 MB / 425.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2651, allocations: 0 / 425.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2651, allocations: 0 / 425.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.2651, allocations: 0 / 425.7 MB, free: 1.777 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001756/0.2669, allocations: 1.247 MB / 426.9 MB, free: 492 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.2669, allocations: 12.02 kB / 426.9 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004201/0.2673, allocations: 147.7 kB / 427.1 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009105/0.2683, allocations: 0.6416 MB / 427.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.509e-05/0.2683, allocations: 62.38 kB / 427.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.2684, allocations: 76.38 kB / 427.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.2696, allocations: 0.7832 MB / 428.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.922e-05/0.2697, allocations: 11.83 kB / 428.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.2697, allocations: 32 kB / 428.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.2698, allocations: 23.94 kB / 428.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009386/0.2707, allocations: 0.5192 MB / 429.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003632/0.2743, allocations: 3.356 MB / 432.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004478/0.2748, allocations: 238.5 kB / 432.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.275, allocations: 112.8 kB / 432.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.2751, allocations: 4 kB / 432.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.2751, allocations: 38.56 kB / 433 MB, free: 10.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.933e-06/0.2751, allocations: 0 / 433 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001819/0.2769, allocations: 1.049 MB / 434 MB, free: 9.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.277, allocations: 81.34 kB / 434.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008048/0.2778, allocations: 0.7387 MB / 434.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.2778, allocations: 37.69 kB / 434.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.2781, allocations: 494.2 kB / 435.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.634e-05/0.2782, allocations: 102.5 kB / 435.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.2783, allocations: 118.2 kB / 435.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.2785, allocations: 378.8 kB / 435.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002417/0.2787, allocations: 121.2 kB / 436 MB, free: 6.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004027/0.2791, allocations: 422.2 kB / 436.5 MB, free: 6.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006842/0.2798, allocations: 0.5714 MB / 437 MB, free: 5.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.2798, allocations: 4 kB / 437 MB, free: 5.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009352/0.2808, allocations: 0.6186 MB / 437.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.2808, allocations: 8 kB / 437.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.2808, allocations: 8 kB / 437.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001347/0.281, allocations: 33.42 kB / 437.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003861/0.2814, allocations: 143.7 kB / 437.8 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009356/0.2823, allocations: 1.398 MB / 439.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003928/0.2827, allocations: 27.98 kB / 439.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.2828, allocations: 35.94 kB / 439.3 MB, free: 3.234 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00027/0.283, allocations: 237.6 kB / 439.5 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.799e-05/0.2831, allocations: 79.06 kB / 439.6 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005867/0.2837, allocations: 321.3 kB / 439.9 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2837, allocations: 4 kB / 439.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.2837, allocations: 0 / 439.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.2838, allocations: 3.984 kB / 439.9 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.2852, allocations: 1.098 MB / 441 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.2852, allocations: 4.219 kB / 441 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000241/0.2855, allocations: 59.91 kB / 441.1 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.547e-05/0.2855, allocations: 24.84 kB / 441.1 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.2856, allocations: 8 kB / 441.1 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000796/0.2864, allocations: 1.367 MB / 442.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2864, allocations: 4.031 kB / 442.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007656/0.2872, allocations: 0.5488 MB / 443 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.2874, allocations: 168.3 kB / 443.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.634e-05/0.2874, allocations: 11.98 kB / 443.2 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000291/0.2877, allocations: 23.98 kB / 443.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.896e-05/0.2878, allocations: 27.91 kB / 443.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.2878, allocations: 11.94 kB / 443.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005572/0.2884, allocations: 0.503 MB / 443.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2884, allocations: 0 / 443.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005882/0.289, allocations: 163.9 kB / 443.9 MB, free: 14.28 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001855/0.2892, allocations: 122.7 kB / 444.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007837/0.29, allocations: 469 kB / 444.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.29, allocations: 4 kB / 444.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.2903, allocations: 238.5 kB / 444.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000809/0.2911, allocations: 183.2 kB / 444.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/0.2933, allocations: 1.452 MB / 446.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004457/0.2937, allocations: 0.9411 MB / 447.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.2938, allocations: 55.44 kB / 447.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2938, allocations: 0 / 447.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of Templates: time 0.01465/0.3085, allocations: 13.6 MB / 461 MB, free: 13.16 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches