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.001371/0.001371, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001466/0.001466, allocations: 216.4 kB / 24.48 MB, free: 3.941 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.439/1.439, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.001519/0.001519, allocations: 51.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2178, allocations: 53.37 MB / 432.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01343/0.2312, allocations: 10.56 MB / 442.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006118/0.2374, allocations: 3.139 MB / 446.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001166/0.2385, allocations: 43.81 kB / 446.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001705/0.2402, allocations: 0.64 MB / 446.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001854/0.2421, allocations: 0.7834 MB / 447.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007903/0.2429, allocations: 403.5 kB / 447.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002799/0.2457, allocations: 2.413 MB / 450.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001042/0.2467, allocations: 0.6539 MB / 451 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.2481, allocations: 0.9417 MB / 451.9 MB, free: 3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001151/0.2492, allocations: 0.9762 MB / 452.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002907/0.2495, allocations: 232 kB / 453.1 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005496/0.2501, allocations: 268 kB / 453.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003952/0.2505, allocations: 458.3 kB / 453.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009213/0.2514, allocations: 0.8711 MB / 454.7 MB, free: 212 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003182/0.2546, allocations: 2.868 MB / 457.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2546, allocations: 0 / 457.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2546, allocations: 0 / 457.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.2546, allocations: 0 / 457.6 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.004008/0.2586, allocations: 2.137 MB / 459.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.2587, allocations: 12.03 kB / 459.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.2597, allocations: 291.5 kB / 460 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.2617, allocations: 1.048 MB / 461.1 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.2618, allocations: 119.5 kB / 461.2 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002539/0.262, allocations: 163.8 kB / 461.3 MB, free: 9.484 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002905/0.2649, allocations: 1.604 MB / 462.9 MB, free: 7.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.234e-05/0.265, allocations: 7.938 kB / 462.9 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001396/0.2651, allocations: 60 kB / 463 MB, free: 7.727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.654e-05/0.2652, allocations: 43.98 kB / 463 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002218/0.2674, allocations: 1.045 MB / 464.1 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008314/0.2757, allocations: 5.406 MB / 469.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.2774, allocations: 0.5739 MB / 470.1 MB, free: 368 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009671/0.2783, allocations: 426.7 kB / 470.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.637e-05/0.2784, allocations: 8.656 kB / 470.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/0.2784, allocations: 43.16 kB / 470.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.895e-06/0.2784, allocations: 0 / 470.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005271/0.2837, allocations: 2.158 MB / 472.7 MB, free: 13.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.2838, allocations: 115.5 kB / 472.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.2855, allocations: 1.176 MB / 474 MB, free: 12.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.295e-05/0.2856, allocations: 37.7 kB / 474 MB, free: 12.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007006/0.2863, allocations: 0.8818 MB / 474.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002302/0.2865, allocations: 273.7 kB / 475.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00032/0.2868, allocations: 210.8 kB / 475.4 MB, free: 10.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.287, allocations: 349.9 kB / 475.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006192/0.2876, allocations: 286.5 kB / 476 MB, free: 10.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.2886, allocations: 0.7926 MB / 476.8 MB, free: 9.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001696/0.2903, allocations: 1.081 MB / 477.9 MB, free: 8.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.2903, allocations: 8 kB / 477.9 MB, free: 8.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002537/0.2929, allocations: 1.249 MB / 479.1 MB, free: 6.742 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.2929, allocations: 12 kB / 479.1 MB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.2929, allocations: 16 kB / 479.2 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005281/0.2934, allocations: 142.9 kB / 479.3 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009047/0.2944, allocations: 255.6 kB / 479.5 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004247/0.2986, allocations: 4.248 MB / 483.8 MB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009036/0.2995, allocations: 55.97 kB / 483.8 MB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.991e-05/0.2996, allocations: 52 kB / 483.9 MB, free: 1.656 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.0005974/0.3002, allocations: 357.5 kB / 484.2 MB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001924/0.3004, allocations: 131.2 kB / 484.4 MB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001869/0.3022, allocations: 0.8203 MB / 485.2 MB, free: 336 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.3023, allocations: 8.141 kB / 485.2 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3023, allocations: 0 / 485.2 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.3023, allocations: 7.969 kB / 485.2 MB, free: 320 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003783/0.306, allocations: 1.961 MB / 487.2 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.3061, allocations: 4 kB / 487.2 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006374/0.3067, allocations: 131.8 kB / 487.3 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004534/0.3071, allocations: 134.9 kB / 487.4 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.433e-05/0.3072, allocations: 23.98 kB / 487.5 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004534/0.3117, allocations: 4.392 MB / 491.8 MB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.3117, allocations: 4 kB / 491.9 MB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.3143, allocations: 1.292 MB / 493.1 MB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005053/0.3148, allocations: 195.1 kB / 493.3 MB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.315, allocations: 20 kB / 493.4 MB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006416/0.3156, allocations: 35.97 kB / 493.4 MB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.3157, allocations: 68.27 kB / 493.5 MB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.895e-05/0.3158, allocations: 24 kB / 493.5 MB, free: 7.559 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001215/0.317, allocations: 0.7724 MB / 494.3 MB, free: 6.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.317, allocations: 0 / 494.3 MB, free: 6.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001268/0.3183, allocations: 324 kB / 494.6 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.0002421/0.3185, allocations: 143.1 kB / 494.7 MB, free: 6.316 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.3205, allocations: 1.08 MB / 495.8 MB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3205, allocations: 3.938 kB / 495.8 MB, free: 5.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.3216, allocations: 0.6927 MB / 496.5 MB, free: 4.469 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/0.3231, allocations: 349.3 kB / 496.8 MB, free: 4.145 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005465/0.3286, allocations: 2.931 MB / 499.8 MB, free: 1.125 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007332/0.3293, allocations: 0.6376 MB / 0.4887 GB, free: 464 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005898/0.3299, allocations: 158.8 kB / 0.4888 GB, free: 300 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.3302, allocations: 83.42 kB / 0.4889 GB, free: 220 kB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3302, allocations: 0 / 0.4889 GB, free: 220 kB / 398.1 MB Notification: Performance of Templates: time 0.03572/0.3659, allocations: 19.99 MB / 0.5084 GB, free: 12.56 MB / 430.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 -s gbode -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: 5.178722675991594]