Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001593/0.001593, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001879/0.001879, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.439/1.439, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 47.94 kB / 378.2 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2633, allocations: 53.37 MB / 431.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003773/0.267, allocations: 2.068 MB / 433.7 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.2684, allocations: 0.6232 MB / 434.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.2686, allocations: 3.938 kB / 434.3 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.2687, allocations: 19.8 kB / 434.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.2689, allocations: 31.7 kB / 434.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003138/0.2692, allocations: 71.75 kB / 434.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000233/0.2694, allocations: 131.5 kB / 434.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.2696, allocations: 42.05 kB / 434.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.2697, allocations: 51.84 kB / 434.6 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.2698, allocations: 59.7 kB / 434.7 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.2698, allocations: 12 kB / 434.7 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.271e-05/0.2699, allocations: 12 kB / 434.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.901e-05/0.2699, allocations: 39.78 kB / 434.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.548e-05/0.27, allocations: 63.61 kB / 434.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002541/0.2703, allocations: 148.6 kB / 435 MB, free: 3.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2703, allocations: 0 / 435 MB, free: 3.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2703, allocations: 0 / 435 MB, free: 3.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.2703, allocations: 0 / 435 MB, free: 3.555 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006291/0.2709, allocations: 385.6 kB / 435.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.2709, allocations: 8.031 kB / 435.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.492e-05/0.271, allocations: 20.8 kB / 435.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.2713, allocations: 159.9 kB / 435.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.2713, allocations: 12.36 kB / 435.5 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.88e-05/0.2713, allocations: 20.31 kB / 435.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005066/0.2718, allocations: 253.5 kB / 435.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.2718, allocations: 3.984 kB / 435.8 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.2719, allocations: 8 kB / 435.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.2719, allocations: 4 kB / 435.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.2721, allocations: 83.88 kB / 435.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006466/0.2727, allocations: 0.5388 MB / 436.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/0.2731, allocations: 143.7 kB / 436.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.2732, allocations: 66.64 kB / 436.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.2733, allocations: 12.11 kB / 436.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.2733, allocations: 46.55 kB / 436.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.2733, allocations: 0 / 436.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005129/0.2738, allocations: 189.6 kB / 436.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.899e-05/0.2739, allocations: 110.9 kB / 437 MB, free: 1.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.274, allocations: 162.2 kB / 437.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.2741, allocations: 33.7 kB / 437.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.2742, allocations: 116.5 kB / 437.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.2742, allocations: 27.78 kB / 437.3 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.518e-05/0.2742, allocations: 37.7 kB / 437.4 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.2744, allocations: 322.8 kB / 437.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.2745, allocations: 35.97 kB / 437.7 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.2747, allocations: 137.7 kB / 437.9 MB, free: 380 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.275, allocations: 189.5 kB / 438 MB, free: 140 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.275, allocations: 4 kB / 438.1 MB, free: 136 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003928/0.2754, allocations: 197.6 kB / 438.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.2754, allocations: 4 kB / 438.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2754, allocations: 8 kB / 438.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.2754, allocations: 8 kB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.2755, allocations: 43.91 kB / 438.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.2756, allocations: 4 kB / 438.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.2757, allocations: 27.88 kB / 438.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.2757, allocations: 8 kB / 438.3 MB, free: 15.83 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.2758, allocations: 133.7 kB / 438.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.2759, allocations: 97.53 kB / 438.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.151e-05/0.276, allocations: 24.64 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.276, allocations: 4 kB / 438.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.276, allocations: 0 / 438.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.276, allocations: 0 / 438.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002772/0.2763, allocations: 192.5 kB / 438.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2763, allocations: 0 / 438.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.2765, allocations: 31.98 kB / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2765, allocations: 0 / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.2765, allocations: 7.984 kB / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.2765, allocations: 11.94 kB / 438.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2765, allocations: 0 / 438.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005235/0.277, allocations: 375.5 kB / 439.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.614e-05/0.2771, allocations: 27.86 kB / 439.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.5e-05/0.2771, allocations: 12.05 kB / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.2772, allocations: 8.094 kB / 439.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.2773, allocations: 7.922 kB / 439.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.2773, allocations: 4 kB / 439.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.489e-05/0.2774, allocations: 119.2 kB / 439.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2774, allocations: 3.938 kB / 439.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000314/0.2777, allocations: 24 kB / 439.4 MB, free: 14.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001033/0.2778, allocations: 107.8 kB / 439.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003409/0.2781, allocations: 123.7 kB / 439.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2781, allocations: 0 / 439.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.273e-05/0.2782, allocations: 24.92 kB / 439.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005081/0.2787, allocations: 81.95 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007848/0.2795, allocations: 430.2 kB / 440.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.2799, allocations: 0.724 MB / 440.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.167e-05/0.2799, allocations: 9.422 kB / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.28, allocations: 15.44 kB / 440.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.28, allocations: 0 / 440.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of Templates: time 0.004708/0.2847, allocations: 1.46 MB / 442.4 MB, free: 11.71 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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: 4.599635455058888]