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.001073/0.001073, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 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.005949/0.005949, allocations: 153.2 kB / 24.69 MB, free: 9.434 MB / 18.57 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 0.8542/0.8542, allocations: 173.4 MB / 201.2 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.443e-06/1.443e-06, allocations: 3.938 kB / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.773e-05/1.918e-05, allocations: 10.22 kB / 319.7 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.007304/0.007323, allocations: 10.2 MB / 329.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00334/0.01066, allocations: 3.079 MB / 333 MB, free: 8.488 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005014/0.01117, allocations: 47.75 kB / 333 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009621/0.01213, allocations: 0.6206 MB / 333.7 MB, free: 7.816 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008876/0.01301, allocations: 0.7519 MB / 334.4 MB, free: 7.059 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004291/0.01344, allocations: 411.4 kB / 334.8 MB, free: 6.656 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.01478, allocations: 2.341 MB / 337.1 MB, free: 4.309 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005913/0.01537, allocations: 0.599 MB / 337.7 MB, free: 3.656 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009089/0.01628, allocations: 1.309 MB / 339.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005841/0.01687, allocations: 0.6542 MB / 339.7 MB, free: 1.688 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.01702, allocations: 216 kB / 339.9 MB, free: 1.477 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002359/0.01725, allocations: 255.9 kB / 340.2 MB, free: 1.227 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001994/0.01745, allocations: 442.3 kB / 340.6 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004095/0.01786, allocations: 0.6976 MB / 341.3 MB, free: 92 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001575/0.01944, allocations: 2.675 MB / 344 MB, free: 13.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.01944, allocations: 4 kB / 344 MB, free: 13.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01944, allocations: 0 / 344 MB, free: 13.4 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.01946, allocations: 7.938 kB / 344 MB, free: 13.39 MB / 314.7 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.001997/0.02146, allocations: 2.021 MB / 346 MB, free: 11.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.02149, allocations: 8.922 kB / 346 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003958/0.02188, allocations: 263.6 kB / 346.3 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.02293, allocations: 0.9679 MB / 347.2 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.469e-05/0.02298, allocations: 111.5 kB / 347.3 MB, free: 9.953 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.02312, allocations: 164.3 kB / 347.5 MB, free: 9.793 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.02462, allocations: 1.592 MB / 349.1 MB, free: 8.102 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/0.02465, allocations: 7.891 kB / 349.1 MB, free: 8.094 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.813e-05/0.02473, allocations: 71.94 kB / 349.2 MB, free: 8.023 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.041e-05/0.02475, allocations: 40 kB / 349.2 MB, free: 7.984 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.02589, allocations: 0.9629 MB / 350.2 MB, free: 7.016 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004291/0.03018, allocations: 5.709 MB / 355.9 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005207/0.0307, allocations: 380.8 kB / 356.3 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.03096, allocations: 200.1 kB / 356.5 MB, free: 404 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.03099, allocations: 8.5 kB / 356.5 MB, free: 396 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000326/0.03131, allocations: 325.2 kB / 356.8 MB, free: 36 kB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 1.493e-06/0.03131, allocations: 7.938 kB / 356.8 MB, free: 28 kB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.001886/0.0332, allocations: 1.536 MB / 358.3 MB, free: 14.46 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/0.03328, allocations: 166.7 kB / 358.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009007/0.03418, allocations: 1.122 MB / 359.6 MB, free: 13.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.0342, allocations: 33.7 kB / 359.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004267/0.03463, allocations: 0.8927 MB / 360.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.03474, allocations: 214.2 kB / 360.7 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.03491, allocations: 218.8 kB / 361 MB, free: 11.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.838e-05/0.03501, allocations: 349.9 kB / 361.3 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002897/0.0353, allocations: 260.2 kB / 361.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005498/0.03585, allocations: 0.9366 MB / 362.5 MB, free: 9.902 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008531/0.0367, allocations: 1.118 MB / 363.6 MB, free: 8.516 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.0367, allocations: 4 kB / 363.6 MB, free: 8.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001122/0.03783, allocations: 1.19 MB / 364.8 MB, free: 7.293 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.03786, allocations: 45.69 kB / 364.8 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.03787, allocations: 16 kB / 364.9 MB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001439/0.03802, allocations: 65.7 kB / 364.9 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004139/0.03843, allocations: 267.5 kB / 365.2 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.03959, allocations: 2.52 MB / 367.7 MB, free: 4.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003823/0.03997, allocations: 72.23 kB / 367.8 MB, free: 4.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-05/0.04002, allocations: 68 kB / 367.8 MB, free: 4.035 MB / 330.7 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.000337/0.04036, allocations: 353.4 kB / 368.2 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.535e-05/0.04044, allocations: 127.2 kB / 368.3 MB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005902/0.04103, allocations: 0.5419 MB / 368.9 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.04104, allocations: 7.938 kB / 368.9 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.04104, allocations: 0 / 368.9 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.04105, allocations: 3.984 kB / 368.9 MB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/0.0425, allocations: 1.536 MB / 370.4 MB, free: 1.352 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.04251, allocations: 7.938 kB / 370.4 MB, free: 1.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002217/0.04273, allocations: 107.8 kB / 370.5 MB, free: 1.238 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.93e-05/0.04281, allocations: 41.7 kB / 370.6 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.04283, allocations: 12.47 kB / 370.6 MB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.04385, allocations: 2.497 MB / 373.1 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.04385, allocations: 11.94 kB / 373.1 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007949/0.04465, allocations: 0.8951 MB / 374 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/0.04484, allocations: 167.2 kB / 374.1 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.725e-05/0.04491, allocations: 20.11 kB / 374.2 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.04515, allocations: 31.98 kB / 374.2 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.534e-05/0.04523, allocations: 67.78 kB / 374.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.04524, allocations: 12 kB / 374.3 MB, free: 13.21 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006021/0.04585, allocations: 0.7161 MB / 375 MB, free: 12.49 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04585, allocations: 3.938 kB / 375 MB, free: 12.49 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005709/0.04642, allocations: 300 kB / 375.3 MB, free: 12.2 MB / 346.7 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.0001832/0.0466, allocations: 146.4 kB / 375.4 MB, free: 12.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008564/0.04746, allocations: 0.915 MB / 376.3 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.04746, allocations: 4.062 kB / 376.3 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000348/0.04781, allocations: 456.7 kB / 376.8 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007744/0.04858, allocations: 293 kB / 377.1 MB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.05097, allocations: 2.445 MB / 379.5 MB, free: 7.797 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.05137, allocations: 0.5961 MB / 380.1 MB, free: 7.156 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.0515, allocations: 88.5 kB / 380.2 MB, free: 7.07 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.0515, allocations: 0 / 380.2 MB, free: 7.07 MB / 346.7 MB Notification: Performance of Templates: time 0.02007/0.07156, allocations: 31.62 MB / 411.8 MB, free: 7.48 MB / 378.7 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.755677469074726]