Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.0009358/0.0009358, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.0009446/0.0009446, allocations: 170.3 kB / 24.92 MB, free: 9.18 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.9104/0.9104, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.58e-05/1.704e-05, allocations: 6.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002396/0.002413, allocations: 2.109 MB / 275.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.003432, allocations: 0.5257 MB / 276.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.915e-05/0.003522, allocations: 4 kB / 276.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001006/0.003622, allocations: 27.7 kB / 276.1 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.574e-05/0.003688, allocations: 27.72 kB / 276.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.00391, allocations: 55.81 kB / 276.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001391/0.004049, allocations: 135.4 kB / 276.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.004159, allocations: 46.62 kB / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.489e-05/0.004254, allocations: 67.86 kB / 276.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.406e-05/0.004318, allocations: 43.83 kB / 276.5 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.004342, allocations: 15.94 kB / 276.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.292e-05/0.004355, allocations: 8 kB / 276.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.612e-05/0.004381, allocations: 35.91 kB / 276.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.253e-05/0.004413, allocations: 35.91 kB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.004541, allocations: 87.66 kB / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.004543, allocations: 0 / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.004544, allocations: 0 / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.004548, allocations: 0 / 276.6 MB, free: 14.08 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0003273/0.004875, allocations: 336.3 kB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.004903, allocations: 12.02 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.196e-05/0.004935, allocations: 20.92 kB / 277 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.005075, allocations: 137.7 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.005086, allocations: 16.31 kB / 277.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.005112, allocations: 20.33 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.005326, allocations: 191.8 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.005337, allocations: 8.188 kB / 277.4 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.005346, allocations: 4.375 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.005352, allocations: 7.938 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.426e-05/0.005397, allocations: 39.91 kB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003601/0.005757, allocations: 453.9 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001464/0.005903, allocations: 103.7 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.523e-05/0.005938, allocations: 38.56 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.005954, allocations: 4.094 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.005974, allocations: 46.48 kB / 278 MB, free: 12.51 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 4.418e-06/0.005978, allocations: 0 / 278 MB, free: 12.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.000145/0.006123, allocations: 93.53 kB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.006175, allocations: 110.8 kB / 278.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.391e-05/0.006239, allocations: 141.6 kB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.00625, allocations: 29.7 kB / 278.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.00629, allocations: 108.1 kB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.48e-05/0.006305, allocations: 27.77 kB / 278.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.847e-05/0.006333, allocations: 21.72 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.994e-05/0.006403, allocations: 330.7 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.506e-05/0.006418, allocations: 11.98 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.795e-05/0.006456, allocations: 63.67 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.138e-05/0.006517, allocations: 82.83 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.006519, allocations: 0 / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.043e-05/0.0066, allocations: 93.62 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/0.006609, allocations: 4 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.006613, allocations: 4 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.006623, allocations: 0 / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.424e-05/0.006687, allocations: 27.92 kB / 279.2 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.006692, allocations: 7.984 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.32e-05/0.006725, allocations: 11.95 kB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.006732, allocations: 7.938 kB / 279.2 MB, free: 11.23 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 5.725e-05/0.006789, allocations: 117.8 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.789e-05/0.006867, allocations: 81.59 kB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.326e-05/0.00689, allocations: 16.78 kB / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.006892, allocations: 0 / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.006895, allocations: 4 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.006899, allocations: 0 / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.007019, allocations: 93.78 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.00702, allocations: 0 / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.007121, allocations: 47.91 kB / 279.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.007123, allocations: 0 / 279.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.007134, allocations: 4 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.007135, allocations: 0 / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.007137, allocations: 8 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.007263, allocations: 243.5 kB / 279.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.352e-05/0.007276, allocations: 11.89 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.007292, allocations: 8 kB / 279.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.7e-05/0.007349, allocations: 3.984 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.47e-05/0.007374, allocations: 4 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.007381, allocations: 11.98 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.1e-05/0.007402, allocations: 24.83 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007402, allocations: 0 / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001654/0.007568, allocations: 27.95 kB / 279.9 MB, free: 10.48 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.163e-05/0.007629, allocations: 80.45 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.411e-05/0.007713, allocations: 60.95 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.007717, allocations: 0 / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.864e-05/0.007735, allocations: 20.78 kB / 280 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.007982, allocations: 55.95 kB / 280.1 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005739/0.008556, allocations: 350.6 kB / 280.4 MB, free: 9.887 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.347e-05/0.008599, allocations: 75.33 kB / 280.5 MB, free: 9.793 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.743e-05/0.008626, allocations: 8.969 kB / 280.5 MB, free: 9.781 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.613e-05/0.008693, allocations: 63.38 kB / 280.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.008693, allocations: 0 / 280.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of Templates: time 0.00282/0.01151, allocations: 1.392 MB / 282 MB, free: 8.395 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.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.620560633018613]