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.001374/0.001374, allocations: 80.8 kB / 21.49 MB, free: 2.988 MB / 18.57 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.004593/0.004593, allocations: 169.2 kB / 24.91 MB, free: 9.207 MB / 18.57 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 0.95/0.95, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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 1.944e-06/1.944e-06, allocations: 0 / 273.4 MB, free: 1.352 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.156e-05/2.35e-05, allocations: 2.312 kB / 273.4 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002709/0.002733, allocations: 2.089 MB / 275.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009039/0.003637, allocations: 0.6034 MB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.003742, allocations: 4 kB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.00385, allocations: 19.8 kB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001507/0.004, allocations: 31.72 kB / 276.2 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.004213, allocations: 75.72 kB / 276.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.004349, allocations: 127.5 kB / 276.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.004458, allocations: 46.73 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.4e-05/0.004552, allocations: 75.86 kB / 276.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.851e-05/0.00462, allocations: 43.81 kB / 276.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.004645, allocations: 12 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.504e-05/0.00466, allocations: 8 kB / 276.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.566e-05/0.004706, allocations: 31.91 kB / 276.6 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.876e-05/0.004745, allocations: 47.84 kB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.004888, allocations: 111.5 kB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.00489, allocations: 0 / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.00489, allocations: 0 / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.004893, allocations: 0 / 276.7 MB, free: 14.02 MB / 266.7 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.0003883/0.005282, allocations: 352.2 kB / 277.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.005312, allocations: 11.97 kB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.522e-05/0.005347, allocations: 24.92 kB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.005511, allocations: 150.4 kB / 277.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.005524, allocations: 12.38 kB / 277.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.85e-05/0.005552, allocations: 20.27 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002511/0.005803, allocations: 215.7 kB / 277.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.005813, allocations: 4.188 kB / 277.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.005822, allocations: 4.375 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.00583, allocations: 15.94 kB / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.659e-05/0.005876, allocations: 27.92 kB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003743/0.006251, allocations: 458 kB / 278 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.006421, allocations: 107.7 kB / 278.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.814e-05/0.006459, allocations: 42.64 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.006479, allocations: 12.12 kB / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.701e-05/0.006496, allocations: 30.56 kB / 278.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.006498, allocations: 0 / 278.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001661/0.006664, allocations: 105.5 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.006714, allocations: 114.8 kB / 278.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.292e-05/0.006787, allocations: 157.2 kB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.006797, allocations: 29.7 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.006834, allocations: 104.6 kB / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.006851, allocations: 27.78 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.006881, allocations: 25.7 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.925e-05/0.00695, allocations: 326.8 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.474e-05/0.006965, allocations: 7.984 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.87e-05/0.007003, allocations: 58.75 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.11e-05/0.007064, allocations: 82.89 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.007067, allocations: 4 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.572e-05/0.007153, allocations: 89.59 kB / 279.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.007163, allocations: 4 kB / 279.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.007168, allocations: 4 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.007179, allocations: 4 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.724e-05/0.007246, allocations: 27.92 kB / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.277e-06/0.007249, allocations: 0 / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.468e-05/0.007284, allocations: 15.89 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.007291, allocations: 7.938 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 6.537e-05/0.007356, allocations: 124.6 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.301e-05/0.007419, allocations: 61.77 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.346e-05/0.007463, allocations: 20.77 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.007466, allocations: 4 kB / 279.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.007468, allocations: 0 / 279.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.007471, allocations: 0 / 279.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001301/0.007601, allocations: 105.7 kB / 279.7 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.007602, allocations: 0 / 279.7 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.57e-05/0.007687, allocations: 31.92 kB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.007691, allocations: 4 kB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.007701, allocations: 4 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.007704, allocations: 4 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.007705, allocations: 4 kB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.007841, allocations: 243.6 kB / 279.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.68e-05/0.007878, allocations: 27.83 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.007891, allocations: 4 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.248e-05/0.007954, allocations: 7.984 kB / 280 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.365e-05/0.007977, allocations: 4 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-06/0.007982, allocations: 4 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.721e-05/0.00801, allocations: 38.34 kB / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00801, allocations: 0 / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001643/0.008174, allocations: 24 kB / 280.1 MB, free: 10.35 MB / 266.7 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 6.981e-05/0.008244, allocations: 91.84 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.924e-05/0.008323, allocations: 64.7 kB / 280.2 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.008326, allocations: 0 / 280.2 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.86e-05/0.008344, allocations: 16.8 kB / 280.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.008599, allocations: 56.36 kB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005349/0.009133, allocations: 363.2 kB / 280.6 MB, free: 9.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.125e-05/0.009175, allocations: 75.33 kB / 280.7 MB, free: 9.633 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.159e-05/0.009206, allocations: 4.656 kB / 280.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.003e-05/0.009266, allocations: 67.36 kB / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of SimCode: time 9.01e-07/0.009267, allocations: 0 / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of Templates: time 0.00289/0.01216, allocations: 1.415 MB / 282.2 MB, free: 8.211 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6329046660102904]