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.001021/0.001021, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001137/0.001137, allocations: 207.9 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2423, allocations: 50.54 MB / 409.3 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01205/0.2544, allocations: 12.16 MB / 421.4 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004964/0.2594, allocations: 3.312 MB / 424.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006311/0.2601, allocations: 39.88 kB / 424.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.2615, allocations: 0.6607 MB / 425.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001198/0.2627, allocations: 0.7364 MB / 426.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006007/0.2633, allocations: 403.5 kB / 426.6 MB, free: 212 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002023/0.2653, allocations: 2.413 MB / 429 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/0.2665, allocations: 0.9969 MB / 430 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001166/0.2677, allocations: 0.9106 MB / 430.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001058/0.2688, allocations: 0.9839 MB / 431.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002577/0.269, allocations: 228 kB / 432.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004374/0.2695, allocations: 268 kB / 432.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002981/0.2698, allocations: 466.3 kB / 432.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008562/0.2706, allocations: 1.073 MB / 433.9 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002638/0.2733, allocations: 2.826 MB / 436.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2733, allocations: 0 / 436.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.2733, allocations: 0 / 436.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.686e-05/0.2734, allocations: 0 / 436.7 MB, free: 5.98 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.003852/0.2772, allocations: 2.164 MB / 438.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.2773, allocations: 8.031 kB / 438.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008456/0.2781, allocations: 278.4 kB / 439.1 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001708/0.2798, allocations: 1.126 MB / 440.3 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.597e-05/0.2799, allocations: 119.5 kB / 440.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001973/0.2801, allocations: 163.8 kB / 440.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002534/0.2827, allocations: 1.5 MB / 442 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.528e-05/0.2828, allocations: 7.906 kB / 442.1 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.2829, allocations: 71.94 kB / 442.1 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.743e-05/0.2829, allocations: 47.92 kB / 442.2 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002066/0.285, allocations: 1.041 MB / 443.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008129/0.2932, allocations: 6.226 MB / 449.4 MB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.2947, allocations: 0.6153 MB / 450.1 MB, free: 8.129 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008927/0.2956, allocations: 462.2 kB / 450.5 MB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.337e-05/0.2956, allocations: 8.562 kB / 450.5 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.2957, allocations: 43.12 kB / 450.6 MB, free: 7.617 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.635e-06/0.2957, allocations: 0 / 450.6 MB, free: 7.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.00487/0.3006, allocations: 2.368 MB / 452.9 MB, free: 5.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.3006, allocations: 111.5 kB / 453 MB, free: 5.027 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.3023, allocations: 1.306 MB / 454.3 MB, free: 3.707 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.3023, allocations: 45.64 kB / 454.4 MB, free: 3.656 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005821/0.3029, allocations: 0.8453 MB / 455.2 MB, free: 2.801 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.3031, allocations: 268.2 kB / 455.5 MB, free: 2.535 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/0.3034, allocations: 206.7 kB / 455.7 MB, free: 2.328 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3035, allocations: 345.9 kB / 456 MB, free: 1.984 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005901/0.3041, allocations: 282.5 kB / 456.3 MB, free: 1.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008373/0.305, allocations: 0.7343 MB / 457 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.3064, allocations: 1.092 MB / 458.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.3065, allocations: 8 kB / 458.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002143/0.3086, allocations: 1.256 MB / 459.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3086, allocations: 12.5 kB / 459.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.3087, allocations: 16 kB / 459.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004758/0.3091, allocations: 134.5 kB / 459.6 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007805/0.3099, allocations: 255.6 kB / 459.8 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003849/0.3138, allocations: 4.634 MB / 464.4 MB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008321/0.3146, allocations: 63.89 kB / 464.5 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-05/0.3147, allocations: 59.98 kB / 464.6 MB, free: 8.578 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.0005234/0.3152, allocations: 357.3 kB / 464.9 MB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/0.3154, allocations: 138.3 kB / 465 MB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.3171, allocations: 0.8256 MB / 465.9 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3171, allocations: 15.94 kB / 465.9 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3171, allocations: 0 / 465.9 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3172, allocations: 3.984 kB / 465.9 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003526/0.3207, allocations: 2.327 MB / 468.2 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.3207, allocations: 8.031 kB / 468.2 MB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005466/0.3213, allocations: 127.8 kB / 468.3 MB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004172/0.3217, allocations: 142.5 kB / 468.5 MB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.942e-05/0.3217, allocations: 16 kB / 468.5 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003929/0.3257, allocations: 4.784 MB / 473.3 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.3257, allocations: 11.94 kB / 473.3 MB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/0.3279, allocations: 1.296 MB / 474.6 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003825/0.3283, allocations: 283.4 kB / 474.9 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.3284, allocations: 16 kB / 474.9 MB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006234/0.3291, allocations: 39.97 kB / 474.9 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.3292, allocations: 72.34 kB / 475 MB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/0.3292, allocations: 20 kB / 475 MB, free: 13.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001091/0.3303, allocations: 0.8781 MB / 475.9 MB, free: 12.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3303, allocations: 0 / 475.9 MB, free: 12.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001105/0.3314, allocations: 332 kB / 476.2 MB, free: 12.25 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002438/0.3317, allocations: 139.1 kB / 476.4 MB, free: 12.1 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.3334, allocations: 1.125 MB / 477.5 MB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3335, allocations: 0 / 477.5 MB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009369/0.3344, allocations: 0.7148 MB / 478.2 MB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.3359, allocations: 363.1 kB / 478.5 MB, free: 9.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004636/0.3405, allocations: 2.905 MB / 481.5 MB, free: 6.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007064/0.3412, allocations: 1.21 MB / 482.7 MB, free: 5.621 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005272/0.3418, allocations: 179.6 kB / 482.8 MB, free: 5.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/0.342, allocations: 95.42 kB / 482.9 MB, free: 5.352 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.342, allocations: 3.938 kB / 482.9 MB, free: 5.348 MB / 398.1 MB Notification: Performance of Templates: time 0.03277/0.3748, allocations: 17.99 MB / 0.4892 GB, free: 3.527 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/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