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.001251/0.001252, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2459, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01217/0.2581, allocations: 12.18 MB / 421.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005918/0.2641, allocations: 3.3 MB / 424.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00153/0.2657, allocations: 35.94 kB / 424.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002136/0.2678, allocations: 0.6673 MB / 425.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002571/0.2704, allocations: 0.7247 MB / 426.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009503/0.2714, allocations: 407.5 kB / 426.6 MB, free: 224 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002625/0.274, allocations: 2.413 MB / 429 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001241/0.2753, allocations: 0.993 MB / 430 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.2766, allocations: 0.9067 MB / 430.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001081/0.2777, allocations: 0.9839 MB / 431.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002592/0.278, allocations: 228 kB / 432.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004549/0.2784, allocations: 271.9 kB / 432.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003078/0.2787, allocations: 454.3 kB / 432.8 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008764/0.2796, allocations: 1.073 MB / 433.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002806/0.2824, allocations: 2.848 MB / 436.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2825, allocations: 0 / 436.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2825, allocations: 0 / 436.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.539e-05/0.2825, allocations: 0 / 436.7 MB, free: 5.984 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.003493/0.286, allocations: 2.212 MB / 438.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.286, allocations: 12.03 kB / 438.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008369/0.2869, allocations: 291.5 kB / 439.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.2887, allocations: 1.128 MB / 440.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.399e-05/0.2888, allocations: 115.5 kB / 440.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001857/0.289, allocations: 163.8 kB / 440.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002433/0.2914, allocations: 1.508 MB / 442.1 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.001e-05/0.2915, allocations: 15.86 kB / 442.1 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/0.2916, allocations: 64 kB / 442.2 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.629e-05/0.2916, allocations: 40 kB / 442.2 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00195/0.2936, allocations: 1.045 MB / 443.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007562/0.3012, allocations: 6.247 MB / 449.5 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.3027, allocations: 0.6114 MB / 450.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008972/0.3036, allocations: 470.2 kB / 450.6 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.713e-05/0.3036, allocations: 8.719 kB / 450.6 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.3037, allocations: 43.11 kB / 450.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.536e-06/0.3037, allocations: 0 / 450.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004695/0.3084, allocations: 2.395 MB / 453 MB, free: 5.051 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/0.3085, allocations: 111.5 kB / 453.2 MB, free: 4.918 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/0.3102, allocations: 1.317 MB / 454.5 MB, free: 3.586 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.171e-05/0.3102, allocations: 33.7 kB / 454.5 MB, free: 3.547 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005766/0.3108, allocations: 0.871 MB / 455.4 MB, free: 2.668 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.311, allocations: 269.7 kB / 455.6 MB, free: 2.402 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.3113, allocations: 210.8 kB / 455.8 MB, free: 2.191 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.3114, allocations: 353.9 kB / 456.2 MB, free: 1.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005692/0.312, allocations: 282.5 kB / 456.5 MB, free: 1.562 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008355/0.3128, allocations: 0.7265 MB / 457.2 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.3143, allocations: 1.096 MB / 458.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.3143, allocations: 4 kB / 458.3 MB, free: 15.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002298/0.3166, allocations: 1.268 MB / 459.6 MB, free: 14.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.3167, allocations: 12 kB / 459.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/0.3167, allocations: 16 kB / 459.6 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000489/0.3172, allocations: 138.8 kB / 459.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000814/0.318, allocations: 259.5 kB / 460 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003837/0.3219, allocations: 4.627 MB / 464.6 MB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009854/0.3229, allocations: 63.86 kB / 464.7 MB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.827e-05/0.3229, allocations: 52 kB / 464.7 MB, free: 8.438 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.0005494/0.3235, allocations: 361.4 kB / 465.1 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.3237, allocations: 143.1 kB / 465.2 MB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001667/0.3254, allocations: 0.8334 MB / 466 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.475e-06/0.3254, allocations: 11.94 kB / 466.1 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3254, allocations: 0 / 466.1 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3254, allocations: 7.984 kB / 466.1 MB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003596/0.329, allocations: 2.327 MB / 468.4 MB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.329, allocations: 0 / 468.4 MB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005716/0.3296, allocations: 135.8 kB / 468.5 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00043/0.3301, allocations: 134.8 kB / 468.7 MB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.762e-05/0.3301, allocations: 23.98 kB / 468.7 MB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003989/0.3341, allocations: 4.788 MB / 473.5 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.3341, allocations: 11.92 kB / 473.5 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.3365, allocations: 1.297 MB / 474.8 MB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004781/0.337, allocations: 296 kB / 475.1 MB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/0.3371, allocations: 20 kB / 475.1 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006288/0.3377, allocations: 39.97 kB / 475.1 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.3379, allocations: 60.55 kB / 475.2 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-05/0.3379, allocations: 27.98 kB / 475.2 MB, free: 13.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001207/0.3391, allocations: 0.882 MB / 476.1 MB, free: 12.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3391, allocations: 0 / 476.1 MB, free: 12.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001113/0.3403, allocations: 331.9 kB / 476.4 MB, free: 12.07 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.0002104/0.3405, allocations: 138.1 kB / 476.5 MB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.3423, allocations: 1.129 MB / 477.7 MB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3423, allocations: 4.125 kB / 477.7 MB, free: 10.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009659/0.3433, allocations: 0.7108 MB / 478.4 MB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.3447, allocations: 363.4 kB / 478.7 MB, free: 9.664 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004722/0.3495, allocations: 2.956 MB / 481.7 MB, free: 6.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007472/0.3502, allocations: 1.21 MB / 482.9 MB, free: 5.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005542/0.3508, allocations: 179.6 kB / 483.1 MB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002145/0.351, allocations: 99.36 kB / 483.2 MB, free: 5.113 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.351, allocations: 0 / 483.2 MB, free: 5.113 MB / 398.1 MB Notification: Performance of Templates: time 0.03024/0.3813, allocations: 17.98 MB / 0.4894 GB, free: 3.297 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