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.001445/0.001445, allocations: 113 kB / 19.04 MB, free: 3.254 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.001231/0.001231, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.4/1.4, allocations: 225.6 MB / 250.8 MB, free: 13.34 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.001549/0.001549, allocations: 51.91 kB / 368.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2535, allocations: 52.15 MB / 420.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01323/0.2667, allocations: 11.82 MB / 432.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006905/0.2736, allocations: 3.242 MB / 435.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002138/0.2758, allocations: 35.94 kB / 436 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002106/0.2779, allocations: 0.6652 MB / 436.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002606/0.2805, allocations: 0.729 MB / 437.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.2815, allocations: 403.5 kB / 437.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002907/0.2844, allocations: 2.254 MB / 440 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.2854, allocations: 0.6451 MB / 440.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.2866, allocations: 0.8444 MB / 441.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.2877, allocations: 0.9139 MB / 442.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002581/0.2879, allocations: 216 kB / 442.6 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004347/0.2883, allocations: 260 kB / 442.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003451/0.2887, allocations: 426.5 kB / 443.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009879/0.2897, allocations: 1.026 MB / 444.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002968/0.2926, allocations: 2.689 MB / 447 MB, free: 4.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2927, allocations: 4 kB / 447 MB, free: 4.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2927, allocations: 0 / 447 MB, free: 4.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.922e-05/0.2927, allocations: 0 / 447 MB, free: 4.781 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.003565/0.2962, allocations: 2.116 MB / 449.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.2963, allocations: 8.031 kB / 449.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008279/0.2971, allocations: 263.6 kB / 449.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001871/0.299, allocations: 1.045 MB / 450.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.482e-05/0.2991, allocations: 111.5 kB / 450.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002386/0.2993, allocations: 163.9 kB / 450.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002532/0.3019, allocations: 1.487 MB / 452.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.221e-05/0.3019, allocations: 11.89 kB / 452.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.302, allocations: 68 kB / 452.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.651e-05/0.3021, allocations: 36 kB / 452.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001903/0.304, allocations: 0.9746 MB / 453.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008513/0.3125, allocations: 6.541 MB / 459.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008257/0.3133, allocations: 376.6 kB / 460.2 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004285/0.3138, allocations: 210.1 kB / 460.4 MB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.646e-05/0.3138, allocations: 8.438 kB / 460.4 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000544/0.3143, allocations: 268.8 kB / 460.7 MB, free: 6.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.064e-06/0.3143, allocations: 0 / 460.7 MB, free: 6.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003336/0.3177, allocations: 1.784 MB / 462.5 MB, free: 4.676 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.3178, allocations: 170.8 kB / 462.6 MB, free: 4.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001735/0.3195, allocations: 1.273 MB / 463.9 MB, free: 3.184 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.3196, allocations: 37.7 kB / 463.9 MB, free: 3.141 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007353/0.3203, allocations: 0.8934 MB / 464.8 MB, free: 2.238 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.3205, allocations: 214.2 kB / 465 MB, free: 2.027 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002881/0.3208, allocations: 226.7 kB / 465.3 MB, free: 1.801 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3209, allocations: 349.9 kB / 465.6 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/0.3214, allocations: 234.5 kB / 465.8 MB, free: 1.223 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009307/0.3223, allocations: 0.7995 MB / 466.6 MB, free: 148 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.3238, allocations: 1.122 MB / 467.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.3238, allocations: 7.938 kB / 467.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001921/0.3257, allocations: 1.178 MB / 468.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.428e-05/0.3257, allocations: 44.98 kB / 469 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.57e-05/0.3258, allocations: 20 kB / 469 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002739/0.326, allocations: 73.56 kB / 469.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007723/0.3268, allocations: 259.6 kB / 469.3 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/0.329, allocations: 2.777 MB / 472.1 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008928/0.3299, allocations: 76.03 kB / 472.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-05/0.33, allocations: 56 kB / 472.2 MB, free: 9.965 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.0005824/0.3306, allocations: 364.5 kB / 472.6 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.3307, allocations: 143.1 kB / 472.7 MB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.3318, allocations: 0.545 MB / 473.3 MB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.3318, allocations: 11.98 kB / 473.3 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.3318, allocations: 0 / 473.3 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3318, allocations: 0 / 473.3 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.3346, allocations: 1.87 MB / 475.2 MB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.3346, allocations: 7.938 kB / 475.2 MB, free: 6.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004366/0.335, allocations: 103.9 kB / 475.3 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001559/0.3352, allocations: 50.11 kB / 475.3 MB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.3352, allocations: 15.98 kB / 475.3 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002065/0.3373, allocations: 2.757 MB / 478.1 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.3373, allocations: 4 kB / 478.1 MB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001582/0.3389, allocations: 0.9286 MB / 479 MB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004716/0.3394, allocations: 260.2 kB / 479.3 MB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.3395, allocations: 19.98 kB / 479.3 MB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005155/0.34, allocations: 31.98 kB / 479.3 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.3401, allocations: 51.81 kB / 479.4 MB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.912e-05/0.3402, allocations: 20 kB / 479.4 MB, free: 2.281 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001243/0.3414, allocations: 0.8461 MB / 480.2 MB, free: 1.434 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3414, allocations: 4 kB / 480.2 MB, free: 1.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001135/0.3426, allocations: 304 kB / 480.5 MB, free: 1.133 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.00026/0.3428, allocations: 135 kB / 480.7 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.3444, allocations: 0.9012 MB / 481.6 MB, free: 60 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3444, allocations: 1 kB / 481.6 MB, free: 60 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007132/0.3451, allocations: 461.1 kB / 482 MB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.3465, allocations: 335.7 kB / 482.4 MB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004524/0.3511, allocations: 2.573 MB / 484.9 MB, free: 12.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008481/0.3519, allocations: 1.178 MB / 486.1 MB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005875/0.3525, allocations: 167.3 kB / 486.3 MB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.3527, allocations: 83.44 kB / 486.4 MB, free: 11.14 MB / 398.1 MB Notification: Performance of SimCode: time 1.583e-06/0.3527, allocations: 0 / 486.4 MB, free: 11.14 MB / 398.1 MB Notification: Performance of Templates: time 0.04026/0.3929, allocations: 15.69 MB / 0.4903 GB, free: 11.62 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/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: 5.084971842356026]