Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 214.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 56.02 kB / 379 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2188, allocations: 53.36 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0137/0.2325, allocations: 10.57 MB / 442.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006275/0.2388, allocations: 3.132 MB / 446 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.2401, allocations: 43.88 kB / 446.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001844/0.2419, allocations: 0.6439 MB / 446.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002143/0.2441, allocations: 0.7833 MB / 447.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000912/0.245, allocations: 415.4 kB / 447.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002966/0.248, allocations: 2.405 MB / 450.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.249, allocations: 0.6149 MB / 450.9 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001418/0.2504, allocations: 0.9339 MB / 451.9 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.2518, allocations: 0.8433 MB / 452.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003551/0.2521, allocations: 232 kB / 452.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000527/0.2526, allocations: 260 kB / 453.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003852/0.253, allocations: 462.3 kB / 453.7 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009751/0.254, allocations: 0.875 MB / 454.5 MB, free: 384 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003253/0.2573, allocations: 2.86 MB / 457.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2573, allocations: 0 / 457.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2573, allocations: 4 kB / 457.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.367e-05/0.2573, allocations: 3.938 kB / 457.4 MB, free: 13.5 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.004161/0.2615, allocations: 2.133 MB / 459.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2615, allocations: 12.03 kB / 459.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009743/0.2625, allocations: 287.5 kB / 459.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002078/0.2646, allocations: 1.051 MB / 460.9 MB, free: 9.934 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.2647, allocations: 119.5 kB / 461 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002513/0.2649, allocations: 163.8 kB / 461.2 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002763/0.2677, allocations: 1.608 MB / 462.8 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.479e-05/0.2677, allocations: 7.938 kB / 462.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/0.2679, allocations: 60 kB / 462.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.39e-05/0.2679, allocations: 40 kB / 462.9 MB, free: 7.855 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002227/0.2701, allocations: 1.041 MB / 463.9 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008484/0.2786, allocations: 5.406 MB / 469.3 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.2802, allocations: 0.5739 MB / 469.9 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009696/0.2811, allocations: 426.7 kB / 470.3 MB, free: 120 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.656e-05/0.2812, allocations: 8.656 kB / 470.3 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.2812, allocations: 43.16 kB / 470.4 MB, free: 56 kB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.685e-06/0.2812, allocations: 4 kB / 470.4 MB, free: 52 kB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005229/0.2865, allocations: 2.146 MB / 472.5 MB, free: 13.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.048e-05/0.2865, allocations: 123.4 kB / 472.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/0.2883, allocations: 1.172 MB / 473.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.995e-05/0.2883, allocations: 33.7 kB / 473.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007076/0.2891, allocations: 0.8857 MB / 474.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/0.2893, allocations: 277.7 kB / 475 MB, free: 11.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.2896, allocations: 210.8 kB / 475.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.2898, allocations: 345.9 kB / 475.5 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006392/0.2904, allocations: 286.5 kB / 475.8 MB, free: 10.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.2914, allocations: 0.7965 MB / 476.6 MB, free: 9.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001735/0.2932, allocations: 1.077 MB / 477.7 MB, free: 8.195 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.966e-06/0.2932, allocations: 4 kB / 477.7 MB, free: 8.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002622/0.2958, allocations: 1.253 MB / 478.9 MB, free: 6.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/0.2958, allocations: 15.98 kB / 479 MB, free: 6.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/0.2959, allocations: 16 kB / 479 MB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005432/0.2964, allocations: 138.9 kB / 479.1 MB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008913/0.2973, allocations: 255.6 kB / 479.4 MB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004269/0.3016, allocations: 4.24 MB / 483.6 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.3026, allocations: 59.97 kB / 483.7 MB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.3027, allocations: 52 kB / 483.7 MB, free: 1.84 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.0006445/0.3033, allocations: 353.3 kB / 484.1 MB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002588/0.3036, allocations: 131.2 kB / 484.2 MB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/0.3055, allocations: 0.8281 MB / 485 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.3055, allocations: 8 kB / 485 MB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3055, allocations: 128 / 485 MB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.3055, allocations: 7.984 kB / 485 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004026/0.3095, allocations: 1.965 MB / 487 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3096, allocations: 4 kB / 487 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005997/0.3102, allocations: 127.8 kB / 487.1 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000472/0.3106, allocations: 134.5 kB / 487.2 MB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.535e-05/0.3107, allocations: 23.98 kB / 487.3 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004621/0.3153, allocations: 4.4 MB / 491.7 MB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.3153, allocations: 4 kB / 491.7 MB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002654/0.318, allocations: 1.284 MB / 493 MB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006182/0.3186, allocations: 191.1 kB / 493.1 MB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002392/0.3188, allocations: 20 kB / 493.2 MB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006982/0.3195, allocations: 39.97 kB / 493.2 MB, free: 7.828 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.3197, allocations: 72.27 kB / 493.3 MB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-05/0.3197, allocations: 20 kB / 493.3 MB, free: 7.738 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00137/0.3211, allocations: 0.7763 MB / 494.1 MB, free: 6.957 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3211, allocations: 3.938 kB / 494.1 MB, free: 6.953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001359/0.3224, allocations: 324 kB / 494.4 MB, free: 6.637 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.0002657/0.3227, allocations: 138.2 kB / 494.5 MB, free: 6.496 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002098/0.3248, allocations: 1.081 MB / 495.6 MB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3248, allocations: 0 / 495.6 MB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.3259, allocations: 0.6836 MB / 496.3 MB, free: 4.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/0.3276, allocations: 347.1 kB / 496.6 MB, free: 4.332 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006066/0.3337, allocations: 2.982 MB / 499.6 MB, free: 1.258 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008227/0.3345, allocations: 0.6298 MB / 0.4885 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000334/0.3348, allocations: 95.41 kB / 0.4886 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of SimCode: time 1.523e-06/0.3348, allocations: 0 / 0.4886 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of Templates: time 0.05099/0.3858, allocations: 41.23 MB / 0.5289 GB, free: 7.309 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 10.52930356701836]