Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001954/0.001954, allocations: 107.5 kB / 20.97 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002059/0.002059, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.626/1.626, allocations: 177 MB / 204.5 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.313e-05/3.469e-05, allocations: 2.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003951/0.003985, allocations: 2.08 MB / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.005101, allocations: 0.5103 MB / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.005209, allocations: 3.938 kB / 274.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.005348, allocations: 19.8 kB / 274.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.039e-05/0.005438, allocations: 35.66 kB / 274.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002922/0.00573, allocations: 55.92 kB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002051/0.005935, allocations: 127.4 kB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.006094, allocations: 49.91 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.006245, allocations: 75.8 kB / 275.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.006345, allocations: 43.88 kB / 275.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.298e-05/0.006378, allocations: 8 kB / 275.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.464e-05/0.006402, allocations: 12 kB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.955e-05/0.006442, allocations: 27.84 kB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.213e-05/0.006504, allocations: 35.92 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.006749, allocations: 139.5 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.006756, allocations: 4 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.006757, allocations: 0 / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.006763, allocations: 0 / 275.4 MB, free: 14.59 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.0007084/0.007471, allocations: 451.8 kB / 275.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.007513, allocations: 15.98 kB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.307e-05/0.007586, allocations: 24.84 kB / 275.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.007841, allocations: 156.3 kB / 276 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.00786, allocations: 16.38 kB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.007895, allocations: 16.38 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005227/0.008418, allocations: 240 kB / 276.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.008435, allocations: 4.172 kB / 276.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.008451, allocations: 4.375 kB / 276.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.008461, allocations: 7.938 kB / 276.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.008657, allocations: 67.91 kB / 276.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008304/0.009488, allocations: 0.6563 MB / 277 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004611/0.009949, allocations: 165.3 kB / 277.2 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.01009, allocations: 71.12 kB / 277.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.01011, allocations: 4 kB / 277.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.01015, allocations: 41.33 kB / 277.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.01015, allocations: 3.938 kB / 277.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004613/0.01061, allocations: 169.8 kB / 277.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.676e-05/0.01071, allocations: 114.8 kB / 277.6 MB, free: 12.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.01089, allocations: 209.2 kB / 277.8 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.01091, allocations: 25.7 kB / 277.8 MB, free: 11.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.01103, allocations: 170.8 kB / 278 MB, free: 11.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.773e-05/0.01106, allocations: 23.84 kB / 278 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-05/0.01112, allocations: 31.38 kB / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002655/0.01139, allocations: 0.5 MB / 278.5 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.334e-05/0.01147, allocations: 27.98 kB / 278.6 MB, free: 11.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.01162, allocations: 105.1 kB / 278.7 MB, free: 10.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.01185, allocations: 141.6 kB / 278.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.01185, allocations: 0 / 278.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002696/0.01212, allocations: 133.4 kB / 278.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.01213, allocations: 7.984 kB / 278.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.01214, allocations: 4 kB / 279 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.01216, allocations: 4 kB / 279 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.01226, allocations: 27.92 kB / 279 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.01227, allocations: 0 / 279 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.958e-05/0.01234, allocations: 15.88 kB / 279 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.01235, allocations: 8 kB / 279 MB, free: 10.61 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 0.0001343/0.01249, allocations: 168.8 kB / 279.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.01266, allocations: 97.53 kB / 279.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.774e-05/0.01271, allocations: 20.77 kB / 279.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.01271, allocations: 0 / 279.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.01272, allocations: 4 kB / 279.3 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-06/0.01272, allocations: 0 / 279.3 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002638/0.01298, allocations: 160.5 kB / 279.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.01299, allocations: 0 / 279.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.01318, allocations: 43.91 kB / 279.5 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.01319, allocations: 0 / 279.5 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.0132, allocations: 11.98 kB / 279.5 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.01321, allocations: 4 kB / 279.5 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01321, allocations: 3.938 kB / 279.5 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005865/0.0138, allocations: 470.5 kB / 280 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.295e-05/0.01382, allocations: 11.94 kB / 280 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.01384, allocations: 4 kB / 280 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.01397, allocations: 8 kB / 280 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.366e-05/0.01401, allocations: 3.984 kB / 280 MB, free: 9.547 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.01402, allocations: 4 kB / 280 MB, free: 9.543 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001149/0.01413, allocations: 155.2 kB / 280.2 MB, free: 9.391 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01413, allocations: 0 / 280.2 MB, free: 9.391 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002836/0.01442, allocations: 27.94 kB / 280.2 MB, free: 9.363 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 0.0001314/0.01455, allocations: 115.1 kB / 280.3 MB, free: 9.242 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002669/0.01482, allocations: 87.58 kB / 280.4 MB, free: 9.152 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.01482, allocations: 0 / 280.4 MB, free: 9.152 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.185e-05/0.01491, allocations: 36.05 kB / 280.4 MB, free: 9.113 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005131/0.01542, allocations: 67.16 kB / 280.5 MB, free: 9.047 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008496/0.01627, allocations: 375.9 kB / 280.8 MB, free: 8.645 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001204/0.01639, allocations: 110.2 kB / 281 MB, free: 8.516 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.217e-05/0.01643, allocations: 12.97 kB / 281 MB, free: 8.504 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.569e-05/0.01648, allocations: 16.5 kB / 281 MB, free: 8.484 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01648, allocations: 0 / 281 MB, free: 8.484 MB / 266.7 MB Notification: Performance of Templates: time 0.00485/0.02133, allocations: 1.344 MB / 282.3 MB, free: 7.195 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.34018970199395]