Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002009/0.002009, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002336/0.002336, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 225.6 MB / 249.1 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 55.91 kB / 366.1 MB, free: 356 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1153, allocations: 52.14 MB / 418.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01493/0.1303, allocations: 12.2 MB / 430.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007518/0.1378, allocations: 3.288 MB / 433.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001894/0.1397, allocations: 39.88 kB / 433.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002081/0.1418, allocations: 0.6829 MB / 434.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002988/0.1448, allocations: 0.795 MB / 435.3 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.1458, allocations: 395.5 kB / 435.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003582/0.1494, allocations: 2.429 MB / 438.1 MB, free: 8.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.1504, allocations: 0.6457 MB / 438.7 MB, free: 7.516 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001516/0.152, allocations: 0.9105 MB / 439.7 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001144/0.1531, allocations: 0.9761 MB / 440.6 MB, free: 5.621 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002898/0.1534, allocations: 232 kB / 440.9 MB, free: 5.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004968/0.1539, allocations: 272 kB / 441.1 MB, free: 5.129 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003651/0.1542, allocations: 450.4 kB / 441.6 MB, free: 4.688 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.1553, allocations: 1.077 MB / 442.6 MB, free: 3.605 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003172/0.1585, allocations: 2.848 MB / 445.5 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1585, allocations: 4 kB / 445.5 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1585, allocations: 0 / 445.5 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.384e-05/0.1585, allocations: 0 / 445.5 MB, free: 0.7422 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.217/0.3755, allocations: 2.197 MB / 447.7 MB, free: 29.71 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3756, allocations: 11.34 kB / 447.7 MB, free: 29.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008997/0.3765, allocations: 291.4 kB / 448 MB, free: 29.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001817/0.3783, allocations: 1.131 MB / 449.1 MB, free: 29.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.96e-05/0.3784, allocations: 118.3 kB / 449.2 MB, free: 29.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.3786, allocations: 163.8 kB / 449.4 MB, free: 29.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002284/0.3809, allocations: 1.501 MB / 450.9 MB, free: 29.06 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/0.3809, allocations: 14.61 kB / 450.9 MB, free: 29.06 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.3811, allocations: 67.25 kB / 451 MB, free: 29.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.003e-05/0.3811, allocations: 38.03 kB / 451 MB, free: 29.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002076/0.3832, allocations: 1.051 MB / 452.1 MB, free: 28.76 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008176/0.3913, allocations: 6.25 MB / 458.3 MB, free: 24.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.3929, allocations: 0.5723 MB / 458.9 MB, free: 24.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009174/0.3938, allocations: 421.6 kB / 459.3 MB, free: 24.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.237e-05/0.3939, allocations: 9.656 kB / 459.3 MB, free: 24.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.3939, allocations: 40.75 kB / 459.3 MB, free: 24.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.925e-06/0.3939, allocations: 0 / 459.3 MB, free: 24.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004965/0.3989, allocations: 2.389 MB / 461.7 MB, free: 22.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.3989, allocations: 119.1 kB / 461.8 MB, free: 22.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.4007, allocations: 1.301 MB / 463.1 MB, free: 22.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/0.4008, allocations: 41.05 kB / 463.2 MB, free: 22.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005332/0.4013, allocations: 0.8683 MB / 464.1 MB, free: 21.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.4015, allocations: 274.6 kB / 464.3 MB, free: 21.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/0.4018, allocations: 205 kB / 464.5 MB, free: 21.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.4019, allocations: 354.7 kB / 464.9 MB, free: 20.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005779/0.4025, allocations: 284 kB / 465.2 MB, free: 20.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007711/0.4032, allocations: 0.7376 MB / 465.9 MB, free: 20.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.4046, allocations: 1.091 MB / 467 MB, free: 19.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.4046, allocations: 4.656 kB / 467 MB, free: 19.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00254/0.4072, allocations: 1.266 MB / 468.3 MB, free: 18.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.4072, allocations: 10.91 kB / 468.3 MB, free: 18.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.502e-05/0.4072, allocations: 18.62 kB / 468.3 MB, free: 18.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005548/0.4078, allocations: 141 kB / 468.4 MB, free: 18.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000892/0.4087, allocations: 254.4 kB / 468.7 MB, free: 18.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003088/0.4118, allocations: 4.647 MB / 473.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.413, allocations: 54.98 kB / 473.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.417e-05/0.413, allocations: 58.42 kB / 473.4 MB, free: 14 MB / 366.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.0007487/0.4138, allocations: 355.2 kB / 473.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003806/0.4142, allocations: 149.5 kB / 473.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/0.4165, allocations: 0.8286 MB / 474.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.4165, allocations: 6.781 kB / 474.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/0.4165, allocations: 1.219 kB / 474.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.4165, allocations: 3.938 kB / 474.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004674/0.4212, allocations: 2.334 MB / 477.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.4212, allocations: 3.156 kB / 477.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006352/0.4218, allocations: 132.4 kB / 477.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004895/0.4223, allocations: 132.3 kB / 477.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.892e-05/0.4224, allocations: 24.95 kB / 477.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003233/0.4256, allocations: 4.783 MB / 482.2 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.4256, allocations: 4.625 kB / 482.2 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002432/0.428, allocations: 1.305 MB / 483.5 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005971/0.4286, allocations: 286 kB / 483.7 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.4288, allocations: 20.16 kB / 483.8 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006419/0.4294, allocations: 44.03 kB / 483.8 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.4296, allocations: 57.73 kB / 483.9 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.681e-05/0.4296, allocations: 29.27 kB / 483.9 MB, free: 5.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001404/0.431, allocations: 0.8765 MB / 484.8 MB, free: 5.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.431, allocations: 4 kB / 484.8 MB, free: 5.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00176/0.4328, allocations: 329.8 kB / 485.1 MB, free: 5.238 MB / 366.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.0002592/0.433, allocations: 144.5 kB / 485.2 MB, free: 5.117 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.435, allocations: 1.091 MB / 486.3 MB, free: 4.406 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.435, allocations: 1 kB / 486.3 MB, free: 4.406 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008941/0.4359, allocations: 0.6874 MB / 487 MB, free: 3.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.4374, allocations: 357.2 kB / 487.4 MB, free: 3.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004461/0.4419, allocations: 2.97 MB / 490.3 MB, free: 1.828 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005547/0.4424, allocations: 1.213 MB / 491.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005535/0.443, allocations: 171 kB / 491.7 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/0.4432, allocations: 94.64 kB / 491.8 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4432, allocations: 0 / 491.8 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of Templates: time 0.03609/0.4793, allocations: 18.2 MB / 0.4981 GB, free: 15.29 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.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.3136201640591025]