Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001337/0.001337, allocations: 108.6 kB / 21.19 MB, free: 0.7578 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.001439/0.001439, allocations: 189.1 kB / 24.47 MB, free: 4.152 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.423/1.423, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 51.94 kB / 371.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2449, allocations: 52.18 MB / 423.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01448/0.2593, allocations: 11.84 MB / 435.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006738/0.2661, allocations: 3.226 MB / 439 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001744/0.2678, allocations: 43.81 kB / 439 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002342/0.2702, allocations: 0.6672 MB / 439.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002712/0.2729, allocations: 0.729 MB / 440.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.2741, allocations: 403.5 kB / 440.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003535/0.2777, allocations: 2.261 MB / 443 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001375/0.279, allocations: 0.6459 MB / 443.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001428/0.2805, allocations: 0.8678 MB / 444.6 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.282, allocations: 0.91 MB / 445.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004684/0.2825, allocations: 216 kB / 445.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007724/0.2832, allocations: 260 kB / 445.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005066/0.2838, allocations: 434.4 kB / 446.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001625/0.2854, allocations: 1.019 MB / 447.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003671/0.2891, allocations: 2.69 MB / 450.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2891, allocations: 0 / 450.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2891, allocations: 0 / 450.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.339e-05/0.2892, allocations: 0 / 450.1 MB, free: 4.344 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004663/0.2938, allocations: 2.037 MB / 452.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.2939, allocations: 11.97 kB / 452.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009769/0.2948, allocations: 267.6 kB / 452.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.297, allocations: 0.9725 MB / 453.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.825e-05/0.2971, allocations: 115.5 kB / 453.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002727/0.2973, allocations: 163.9 kB / 453.6 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002861/0.3002, allocations: 1.487 MB / 455.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-05/0.3003, allocations: 7.953 kB / 455.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.3004, allocations: 64 kB / 455.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.766e-05/0.3004, allocations: 36 kB / 455.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002139/0.3026, allocations: 0.9863 MB / 456.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00931/0.3119, allocations: 6.376 MB / 462.6 MB, free: 7.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008489/0.3127, allocations: 383.6 kB / 463 MB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004384/0.3132, allocations: 202.1 kB / 463.2 MB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.3132, allocations: 4.438 kB / 463.2 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005218/0.3137, allocations: 272.8 kB / 463.4 MB, free: 6.449 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.615e-06/0.3137, allocations: 0 / 463.4 MB, free: 6.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003435/0.3172, allocations: 1.56 MB / 465 MB, free: 4.848 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.3173, allocations: 162.7 kB / 465.1 MB, free: 4.652 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001907/0.3192, allocations: 1.277 MB / 466.4 MB, free: 3.359 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.3192, allocations: 37.7 kB / 466.5 MB, free: 3.316 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007637/0.32, allocations: 0.8973 MB / 467.4 MB, free: 2.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.3202, allocations: 210.3 kB / 467.6 MB, free: 2.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002852/0.3205, allocations: 218.8 kB / 467.8 MB, free: 1.984 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.3206, allocations: 361.9 kB / 468.1 MB, free: 1.625 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004777/0.3211, allocations: 222.5 kB / 468.3 MB, free: 1.406 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009432/0.3221, allocations: 0.8073 MB / 469.2 MB, free: 336 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.3236, allocations: 1.117 MB / 470.3 MB, free: 14.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/0.3236, allocations: 4 kB / 470.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002155/0.3258, allocations: 1.18 MB / 471.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.24e-05/0.3258, allocations: 37.7 kB / 471.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.992e-05/0.3258, allocations: 20 kB / 471.5 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002468/0.3261, allocations: 69.62 kB / 471.6 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008413/0.3269, allocations: 267.5 kB / 471.8 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.3292, allocations: 2.575 MB / 474.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009258/0.3301, allocations: 75.81 kB / 474.5 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.073e-05/0.3302, allocations: 60 kB / 474.5 MB, free: 10.4 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000598/0.3308, allocations: 365.3 kB / 474.9 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.331, allocations: 131.2 kB / 475 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.3321, allocations: 0.5551 MB / 475.6 MB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3321, allocations: 4 kB / 475.6 MB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3321, allocations: 4 kB / 475.6 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3321, allocations: 0 / 475.6 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.3352, allocations: 1.826 MB / 477.4 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.154e-06/0.3352, allocations: 4 kB / 477.4 MB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004401/0.3356, allocations: 108.3 kB / 477.5 MB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001682/0.3358, allocations: 41.7 kB / 477.6 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.336e-05/0.3358, allocations: 19.98 kB / 477.6 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0022/0.338, allocations: 2.55 MB / 480.1 MB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/0.3381, allocations: 11.94 kB / 480.2 MB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.3397, allocations: 0.9228 MB / 481.1 MB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005568/0.3402, allocations: 187.1 kB / 481.3 MB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002372/0.3405, allocations: 16 kB / 481.3 MB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000592/0.341, allocations: 31.97 kB / 481.3 MB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.3412, allocations: 55.8 kB / 481.4 MB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.3412, allocations: 20 kB / 481.4 MB, free: 3.125 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001407/0.3426, allocations: 0.8461 MB / 482.2 MB, free: 2.277 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3426, allocations: 0 / 482.2 MB, free: 2.277 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001195/0.3438, allocations: 311.9 kB / 482.5 MB, free: 1.973 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002353/0.344, allocations: 131 kB / 482.7 MB, free: 1.836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.3457, allocations: 0.8975 MB / 483.6 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3457, allocations: 4 kB / 483.6 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000705/0.3464, allocations: 448.9 kB / 484 MB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/0.3479, allocations: 336.7 kB / 484.3 MB, free: 112 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004855/0.3528, allocations: 2.61 MB / 486.9 MB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/0.3538, allocations: 1.17 MB / 488.1 MB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/0.3541, allocations: 95.42 kB / 488.2 MB, free: 12.12 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3541, allocations: 0 / 488.2 MB, free: 12.12 MB / 398.1 MB Notification: Performance of Templates: time 0.04253/0.3967, allocations: 31.81 MB / 0.5078 GB, free: 12.36 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: 9.710722209187225]