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.001027/0.001027, allocations: 84.25 kB / 22.21 MB, free: 2.281 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.001279/0.001279, allocations: 164.4 kB / 25.61 MB, free: 8.891 MB / 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 0.9039/0.9039, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] 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.372e-06/1.372e-06, allocations: 0 / 274.1 MB, free: 4.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.195e-05, allocations: 4.562 kB / 274.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.006115/0.006137, allocations: 2.111 MB / 276.2 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008018/0.006939, allocations: 0.5277 MB / 276.7 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.007045, allocations: 7.938 kB / 276.7 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.007163, allocations: 16.42 kB / 276.7 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.592e-05/0.007239, allocations: 30.19 kB / 276.8 MB, free: 1.621 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000247/0.007486, allocations: 55.81 kB / 276.8 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001675/0.007654, allocations: 135.5 kB / 277 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.007784, allocations: 37.98 kB / 277 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.007896, allocations: 79.75 kB / 277.1 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.016e-05/0.007976, allocations: 37.91 kB / 277.1 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.008001, allocations: 12 kB / 277.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.886e-05/0.00802, allocations: 12 kB / 277.1 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.844e-05/0.008049, allocations: 27.91 kB / 277.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.238e-05/0.008091, allocations: 43.84 kB / 277.2 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.008246, allocations: 83.7 kB / 277.3 MB, free: 1.098 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.008248, allocations: 4.594 kB / 277.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.008249, allocations: 4 kB / 277.3 MB, free: 1.09 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.008253, allocations: 7.938 kB / 277.3 MB, free: 1.082 MB / 250.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.0004244/0.008678, allocations: 456 kB / 277.8 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.008709, allocations: 12.03 kB / 277.8 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.377e-05/0.008753, allocations: 24.84 kB / 277.8 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.008912, allocations: 144.4 kB / 277.9 MB, free: 408 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.00893, allocations: 16.36 kB / 277.9 MB, free: 392 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.008955, allocations: 12.38 kB / 278 MB, free: 380 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.009225, allocations: 220.6 kB / 278.2 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.009235, allocations: 192 / 278.2 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.009246, allocations: 4.375 kB / 278.2 MB, free: 124 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.009253, allocations: 7.938 kB / 278.2 MB, free: 116 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.781e-05/0.009311, allocations: 34.16 kB / 278.2 MB, free: 84 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000489/0.0098, allocations: 0.6406 MB / 278.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.009988, allocations: 137.3 kB / 279 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.388e-05/0.01004, allocations: 51.12 kB / 279 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.01006, allocations: 4 kB / 279 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.01008, allocations: 41.39 kB / 279.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.01008, allocations: 0 / 279.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002194/0.0103, allocations: 113.4 kB / 279.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.716e-05/0.01037, allocations: 118.7 kB / 279.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.708e-05/0.01047, allocations: 185.9 kB / 279.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.01048, allocations: 29.7 kB / 279.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.978e-05/0.01055, allocations: 170.9 kB / 279.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.01057, allocations: 27.72 kB / 279.7 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-05/0.01061, allocations: 35.36 kB / 279.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.01075, allocations: 0.4922 MB / 280.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.131e-05/0.01077, allocations: 11.98 kB / 280.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003078/0.01385, allocations: 89.16 kB / 280.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.438e-05/0.01394, allocations: 93.38 kB / 280.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.01395, allocations: 4 kB / 280.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001336/0.01408, allocations: 101.4 kB / 280.5 MB, free: 13.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.01409, allocations: 4 kB / 280.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.0141, allocations: 4 kB / 280.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.707e-06/0.01411, allocations: 0 / 280.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.338e-05/0.01419, allocations: 32.14 kB / 280.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.0142, allocations: 4 kB / 280.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.193e-05/0.01425, allocations: 19.88 kB / 280.6 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.01426, allocations: 4 kB / 280.6 MB, free: 13.42 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 8.311e-05/0.01434, allocations: 168.6 kB / 280.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.01447, allocations: 77.53 kB / 280.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.018e-05/0.0145, allocations: 20.77 kB / 280.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.0145, allocations: 4 kB / 280.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.0145, allocations: 0 / 280.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.0145, allocations: 4 kB / 280.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.01468, allocations: 129.1 kB / 281 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01468, allocations: 0 / 281 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.01482, allocations: 47.91 kB / 281 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.01482, allocations: 0 / 281 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.01484, allocations: 4 kB / 281 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.01484, allocations: 0 / 281 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01484, allocations: 0 / 281 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.01503, allocations: 354.6 kB / 281.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.728e-05/0.01505, allocations: 11.91 kB / 281.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.01507, allocations: 3.984 kB / 281.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.621e-05/0.01516, allocations: 12.03 kB / 281.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.832e-05/0.01519, allocations: 7.984 kB / 281.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.0152, allocations: 7.938 kB / 281.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.221e-05/0.01525, allocations: 137.8 kB / 281.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01525, allocations: 4 kB / 281.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00027/0.01552, allocations: 27.89 kB / 281.6 MB, free: 12.36 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 8.581e-05/0.01561, allocations: 99.48 kB / 281.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000127/0.01573, allocations: 75.56 kB / 281.8 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01573, allocations: 0 / 281.8 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.848e-05/0.01576, allocations: 23.61 kB / 281.8 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.01619, allocations: 47.09 kB / 281.8 MB, free: 12.1 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00402/0.02021, allocations: 379 kB / 282.2 MB, free: 11.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.86e-05/0.02026, allocations: 75.33 kB / 282.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.385e-05/0.0203, allocations: 4.984 kB / 282.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.191e-05/0.02038, allocations: 86.19 kB / 282.4 MB, free: 11.51 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02038, allocations: 0 / 282.4 MB, free: 11.51 MB / 266.7 MB Notification: Performance of Templates: time 0.006562/0.02694, allocations: 1.475 MB / 283.9 MB, free: 10.1 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","",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.803891743067652]