Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001596/0.001596, allocations: 112.1 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002015/0.002015, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 59.91 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2328, allocations: 50.55 MB / 410 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01179/0.2446, allocations: 12.17 MB / 422.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004842/0.2495, allocations: 3.3 MB / 425.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000633/0.2501, allocations: 35.94 kB / 425.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001318/0.2515, allocations: 0.6646 MB / 426.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001256/0.2528, allocations: 0.7286 MB / 426.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006323/0.2534, allocations: 407.5 kB / 427.2 MB, free: 264 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002053/0.2555, allocations: 2.405 MB / 429.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001104/0.2566, allocations: 1.001 MB / 430.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000958/0.2575, allocations: 0.9145 MB / 431.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009268/0.2585, allocations: 0.9839 MB / 432.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002458/0.2587, allocations: 228 kB / 432.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004136/0.2592, allocations: 271.9 kB / 433 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002908/0.2595, allocations: 454.3 kB / 433.5 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008394/0.2603, allocations: 1.077 MB / 434.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00237/0.2627, allocations: 2.834 MB / 437.4 MB, free: 6.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2627, allocations: 0 / 437.4 MB, free: 6.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.2627, allocations: 4 kB / 437.4 MB, free: 6.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.239e-05/0.2627, allocations: 0 / 437.4 MB, free: 6.02 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003276/0.266, allocations: 2.156 MB / 439.6 MB, free: 3.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2661, allocations: 8.031 kB / 439.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000836/0.2669, allocations: 278.4 kB / 439.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/0.2685, allocations: 1.126 MB / 441 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.268e-05/0.2686, allocations: 119.5 kB / 441.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.2688, allocations: 159.8 kB / 441.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/0.2711, allocations: 1.504 MB / 442.7 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.84e-05/0.2712, allocations: 19.77 kB / 442.8 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/0.2713, allocations: 64 kB / 442.8 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.2713, allocations: 40 kB / 442.9 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001866/0.2732, allocations: 1.045 MB / 443.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007069/0.2803, allocations: 6.226 MB / 450.1 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.2818, allocations: 0.6075 MB / 450.7 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008606/0.2826, allocations: 473.7 kB / 451.2 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.2827, allocations: 8.562 kB / 451.2 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.2827, allocations: 39.11 kB / 451.2 MB, free: 7.668 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.717e-06/0.2827, allocations: 4 kB / 451.2 MB, free: 7.664 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004586/0.2873, allocations: 2.372 MB / 453.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.2874, allocations: 111.5 kB / 453.7 MB, free: 5.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/0.2891, allocations: 1.302 MB / 455 MB, free: 3.754 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.2892, allocations: 37.7 kB / 455.1 MB, free: 3.711 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005982/0.2898, allocations: 0.853 MB / 455.9 MB, free: 2.848 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.29, allocations: 260.3 kB / 456.2 MB, free: 2.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002706/0.2903, allocations: 206.7 kB / 456.4 MB, free: 2.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.2904, allocations: 353.9 kB / 456.7 MB, free: 2.031 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005767/0.291, allocations: 286.5 kB / 457 MB, free: 1.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008366/0.2919, allocations: 0.7265 MB / 457.7 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.2935, allocations: 1.092 MB / 458.8 MB, free: 15.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.2935, allocations: 4 kB / 458.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002367/0.2958, allocations: 1.264 MB / 460.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.2959, allocations: 15.94 kB / 460.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/0.2959, allocations: 12 kB / 460.1 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000527/0.2964, allocations: 139.1 kB / 460.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008679/0.2973, allocations: 259.5 kB / 460.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004156/0.3015, allocations: 4.626 MB / 465.1 MB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.3026, allocations: 59.88 kB / 465.2 MB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.3028, allocations: 55.94 kB / 465.2 MB, free: 8.633 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007293/0.3035, allocations: 361.4 kB / 465.6 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.3037, allocations: 138.3 kB / 465.7 MB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001777/0.3055, allocations: 0.8334 MB / 466.6 MB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3055, allocations: 0 / 466.6 MB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.3055, allocations: 3.938 kB / 466.6 MB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004851/0.306, allocations: 275.3 kB / 466.8 MB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/0.3062, allocations: 12 kB / 466.8 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006236/0.3069, allocations: 39.97 kB / 466.9 MB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.307, allocations: 52.56 kB / 466.9 MB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002006/0.309, allocations: 0.8507 MB / 467.8 MB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001817/0.3108, allocations: 1.152 MB / 468.9 MB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004688/0.3113, allocations: 257.1 kB / 469.2 MB, free: 4.598 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001269/0.3126, allocations: 0.882 MB / 470.1 MB, free: 3.715 MB / 382.1 MB Notification: Performance of Backend: time 1.794e-06/0.3126, allocations: 0 / 470.1 MB, free: 3.715 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002083/0.3147, allocations: 1.016 MB / 471.1 MB, free: 2.648 MB / 382.1 MB Notification: Performance of SimCode: time 0.004927/0.3196, allocations: 3.379 MB / 474.5 MB, free: 15.22 MB / 398.1 MB Notification: Performance of Templates: time 0.0326/0.3523, allocations: 18.67 MB / 493.1 MB, free: 12.71 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches