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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001422/0.001422, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001513/0.001513, allocations: 214.6 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 230.5 MB / 257.4 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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=20000,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=20000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 63.91 kB / 378.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.251, allocations: 53.4 MB / 431.6 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01382/0.2648, allocations: 10.57 MB / 442.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006661/0.2715, allocations: 3.139 MB / 445.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001872/0.2733, allocations: 43.88 kB / 445.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001918/0.2753, allocations: 0.6323 MB / 446 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002362/0.2776, allocations: 0.7872 MB / 446.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008952/0.2785, allocations: 407.5 kB / 447.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002979/0.2815, allocations: 2.409 MB / 449.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.2826, allocations: 0.6071 MB / 450.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.2843, allocations: 0.9301 MB / 451.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001597/0.2859, allocations: 0.8472 MB / 452 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003838/0.2863, allocations: 228 kB / 452.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006554/0.2869, allocations: 272 kB / 452.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004132/0.2874, allocations: 466.3 kB / 453 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009485/0.2883, allocations: 0.8634 MB / 453.8 MB, free: 212 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003657/0.292, allocations: 2.86 MB / 456.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.292, allocations: 0 / 456.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.292, allocations: 0 / 456.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.227e-05/0.292, allocations: 7.938 kB / 456.7 MB, free: 13.32 MB / 366.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.004131/0.2962, allocations: 2.137 MB / 458.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2962, allocations: 8.031 kB / 458.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009184/0.2971, allocations: 291.5 kB / 459.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/0.2992, allocations: 1.051 MB / 460.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.2993, allocations: 119.4 kB / 460.3 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002578/0.2996, allocations: 167.8 kB / 460.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002822/0.3024, allocations: 1.604 MB / 462.1 MB, free: 7.789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.364e-05/0.3025, allocations: 3.938 kB / 462.1 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.3026, allocations: 71.94 kB / 462.1 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.139e-05/0.3026, allocations: 40 kB / 462.2 MB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002205/0.3048, allocations: 1.045 MB / 463.2 MB, free: 6.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008432/0.3133, allocations: 5.406 MB / 468.6 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.3148, allocations: 0.5655 MB / 469.2 MB, free: 368 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009719/0.3158, allocations: 425.9 kB / 469.6 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.3159, allocations: 12.59 kB / 469.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.3159, allocations: 43.16 kB / 469.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.585e-06/0.3159, allocations: 4 kB / 469.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005177/0.3211, allocations: 2.154 MB / 471.8 MB, free: 13.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.094e-05/0.3212, allocations: 111.5 kB / 471.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001812/0.323, allocations: 1.172 MB / 473.1 MB, free: 12.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/0.323, allocations: 41.64 kB / 473.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000737/0.3238, allocations: 0.8818 MB / 474 MB, free: 11.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.324, allocations: 269.7 kB / 474.3 MB, free: 11.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003018/0.3243, allocations: 210.8 kB / 474.5 MB, free: 10.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.3245, allocations: 349.9 kB / 474.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006289/0.3251, allocations: 286.5 kB / 475.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.3262, allocations: 0.7849 MB / 475.9 MB, free: 9.316 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00172/0.3279, allocations: 1.092 MB / 477 MB, free: 8.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.186e-06/0.3279, allocations: 4 kB / 477 MB, free: 8.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002601/0.3305, allocations: 1.257 MB / 478.2 MB, free: 6.742 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.3305, allocations: 12 kB / 478.3 MB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.3305, allocations: 16 kB / 478.3 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005451/0.3311, allocations: 135 kB / 478.4 MB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008558/0.3319, allocations: 255.6 kB / 478.7 MB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004326/0.3363, allocations: 4.252 MB / 482.9 MB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009826/0.3372, allocations: 51.97 kB / 483 MB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.363e-05/0.3373, allocations: 56 kB / 483 MB, free: 1.66 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.000638/0.338, allocations: 361.5 kB / 483.4 MB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001878/0.3381, allocations: 135.1 kB / 483.5 MB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.34, allocations: 0.8164 MB / 484.3 MB, free: 336 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.34, allocations: 8 kB / 484.3 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.34, allocations: 0 / 484.3 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.34, allocations: 3.984 kB / 484.3 MB, free: 324 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003905/0.3439, allocations: 1.957 MB / 486.3 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.3439, allocations: 7.938 kB / 486.3 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006051/0.3446, allocations: 131.7 kB / 486.4 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004614/0.345, allocations: 138.8 kB / 486.6 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/0.3451, allocations: 19.98 kB / 486.6 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004676/0.3497, allocations: 4.397 MB / 491 MB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/0.3497, allocations: 11.92 kB / 491 MB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.3524, allocations: 1.285 MB / 492.3 MB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005954/0.353, allocations: 191.1 kB / 492.5 MB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.3531, allocations: 20 kB / 492.5 MB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006159/0.3538, allocations: 39.97 kB / 492.5 MB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.3539, allocations: 68.27 kB / 492.6 MB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.326e-05/0.354, allocations: 23.98 kB / 492.6 MB, free: 7.559 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001293/0.3553, allocations: 0.7685 MB / 493.4 MB, free: 6.785 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3553, allocations: 4 kB / 493.4 MB, free: 6.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001276/0.3565, allocations: 324 kB / 493.7 MB, free: 6.465 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.0002447/0.3568, allocations: 135.2 kB / 493.8 MB, free: 6.324 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.3589, allocations: 1.076 MB / 494.9 MB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.832e-06/0.3589, allocations: 4 kB / 494.9 MB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.36, allocations: 0.6962 MB / 495.6 MB, free: 4.477 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/0.3616, allocations: 345.8 kB / 495.9 MB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005588/0.3672, allocations: 2.931 MB / 498.9 MB, free: 1.133 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00073/0.3679, allocations: 0.6375 MB / 499.5 MB, free: 472 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005867/0.3685, allocations: 158.8 kB / 499.7 MB, free: 308 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.3687, allocations: 87.42 kB / 499.7 MB, free: 224 kB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3687, allocations: 0 / 499.7 MB, free: 224 kB / 398.1 MB Notification: Performance of Templates: time 0.03493/0.4036, allocations: 19.64 MB / 0.5072 GB, free: 12.85 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (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) [Timeout 480] 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.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.349900247529149]