Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001372/0.001372, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001543/0.001543, allocations: 210 kB / 24.48 MB, free: 3.938 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.435/1.435, allocations: 230.6 MB / 258.2 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_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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 51.86 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.243, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01349/0.2565, allocations: 10.24 MB / 442.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006626/0.2631, allocations: 3.09 MB / 445.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.2647, allocations: 39.88 kB / 445.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00236/0.267, allocations: 0.6207 MB / 446.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002776/0.2698, allocations: 0.7212 MB / 447.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001312/0.2711, allocations: 407.5 kB / 447.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003563/0.2747, allocations: 2.236 MB / 449.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001381/0.2761, allocations: 0.6068 MB / 450.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001655/0.2777, allocations: 0.8795 MB / 451.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001541/0.2793, allocations: 0.7811 MB / 452 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004675/0.2797, allocations: 219.9 kB / 452.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007748/0.2805, allocations: 252 kB / 452.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004931/0.281, allocations: 430.5 kB / 452.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001337/0.2823, allocations: 0.8206 MB / 453.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003229/0.2856, allocations: 2.711 MB / 456.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2856, allocations: 4 kB / 456.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2856, allocations: 0 / 456.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.476e-05/0.2856, allocations: 0 / 456.4 MB, free: 14.55 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004748/0.2904, allocations: 2.041 MB / 458.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.918e-05/0.2904, allocations: 12.03 kB / 458.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001307/0.2917, allocations: 263.6 kB / 458.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002177/0.2939, allocations: 0.9687 MB / 459.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.294, allocations: 115.4 kB / 459.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.2943, allocations: 167.8 kB / 459.9 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002742/0.297, allocations: 1.588 MB / 461.5 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.611e-05/0.2971, allocations: 11.94 kB / 461.5 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/0.2972, allocations: 60 kB / 461.6 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.645e-05/0.2972, allocations: 40 kB / 461.6 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/0.2992, allocations: 0.9747 MB / 462.6 MB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008374/0.3075, allocations: 5.702 MB / 468.3 MB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008794/0.3084, allocations: 381.3 kB / 468.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004564/0.3089, allocations: 199.7 kB / 468.9 MB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.3089, allocations: 8.438 kB / 468.9 MB, free: 1.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005745/0.3095, allocations: 324.2 kB / 469.2 MB, free: 1.168 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.835e-06/0.3095, allocations: 0 / 469.2 MB, free: 1.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003358/0.3128, allocations: 1.537 MB / 470.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.313, allocations: 170.7 kB / 470.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.3146, allocations: 1.118 MB / 472 MB, free: 14.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.765e-05/0.3146, allocations: 33.7 kB / 472 MB, free: 14.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007548/0.3154, allocations: 0.8966 MB / 472.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.3155, allocations: 210.3 kB / 473.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002829/0.3158, allocations: 226.8 kB / 473.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.316, allocations: 357.7 kB / 473.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000499/0.3165, allocations: 264.1 kB / 474 MB, free: 12.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.3175, allocations: 0.925 MB / 474.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.319, allocations: 1.113 MB / 476 MB, free: 9.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.319, allocations: 8 kB / 476 MB, free: 9.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00211/0.3211, allocations: 1.186 MB / 477.2 MB, free: 8.434 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.261e-05/0.3212, allocations: 41.86 kB / 477.3 MB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/0.3212, allocations: 24 kB / 477.3 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002449/0.3214, allocations: 73.56 kB / 477.3 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007864/0.3222, allocations: 267.5 kB / 477.6 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/0.3244, allocations: 2.528 MB / 480.1 MB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/0.3253, allocations: 71.92 kB / 480.2 MB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.044e-05/0.3254, allocations: 64.22 kB / 480.3 MB, free: 5.16 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.0005981/0.326, allocations: 355.4 kB / 480.6 MB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001744/0.3261, allocations: 123.2 kB / 480.7 MB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/0.3272, allocations: 0.5379 MB / 481.3 MB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3272, allocations: 8 kB / 481.3 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3272, allocations: 0 / 481.3 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.3272, allocations: 7.984 kB / 481.3 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002825/0.3301, allocations: 1.548 MB / 482.8 MB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.108e-06/0.3301, allocations: 7.938 kB / 482.8 MB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004457/0.3305, allocations: 103.9 kB / 482.9 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001566/0.3307, allocations: 41.64 kB / 483 MB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-05/0.3307, allocations: 16 kB / 483 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002468/0.3332, allocations: 2.489 MB / 485.5 MB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.3332, allocations: 4 kB / 485.5 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.3353, allocations: 0.9142 MB / 486.4 MB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005901/0.3359, allocations: 159.3 kB / 486.6 MB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001819/0.3361, allocations: 20 kB / 486.6 MB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007296/0.3368, allocations: 31.97 kB / 486.6 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.337, allocations: 55.8 kB / 486.7 MB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.562e-05/0.337, allocations: 20 kB / 486.7 MB, free: 14.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001524/0.3385, allocations: 0.7161 MB / 487.4 MB, free: 13.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3385, allocations: 4 kB / 487.4 MB, free: 13.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001545/0.3401, allocations: 307.9 kB / 487.7 MB, free: 13.3 MB / 398.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.000289/0.3404, allocations: 119.2 kB / 487.8 MB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002135/0.3425, allocations: 0.9336 MB / 488.8 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.3425, allocations: 0 / 488.8 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009297/0.3434, allocations: 446.2 kB / 489.2 MB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002038/0.3455, allocations: 317.9 kB / 489.5 MB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006187/0.3517, allocations: 2.581 MB / 492.1 MB, free: 8.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000971/0.3526, allocations: 0.5999 MB / 492.7 MB, free: 8.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003327/0.353, allocations: 79.44 kB / 492.8 MB, free: 8.055 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.353, allocations: 7.938 kB / 492.8 MB, free: 8.047 MB / 398.1 MB Notification: Performance of Templates: time 0.04848/0.4015, allocations: 31.64 MB / 0.5121 GB, free: 8.434 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.458608998917043]