Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.000977/0.000977, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001118/0.001118, allocations: 165 kB / 24.91 MB, free: 9.188 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.9611/0.9611, allocations: 177 MB / 205.2 MB, free: 5.465 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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.973e-06/1.973e-06, allocations: 0 / 273.3 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.886e-05/3.084e-05, allocations: 6.312 kB / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003416/0.003447, allocations: 2.064 MB / 275.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.004488, allocations: 0.5568 MB / 276 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.004608, allocations: 3.938 kB / 276 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.00474, allocations: 15.86 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.004907, allocations: 31.72 kB / 276 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.005164, allocations: 55.8 kB / 276.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001908/0.005354, allocations: 127.5 kB / 276.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.005495, allocations: 46.19 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.005631, allocations: 83.73 kB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.965e-05/0.00572, allocations: 39.88 kB / 276.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.12e-05/0.005752, allocations: 12 kB / 276.4 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.98e-05/0.005771, allocations: 12 kB / 276.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.295e-05/0.005804, allocations: 23.92 kB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.096e-05/0.005855, allocations: 39.84 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.006053, allocations: 91.64 kB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.006058, allocations: 0 / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.006059, allocations: 0 / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.006064, allocations: 3.938 kB / 276.5 MB, free: 14.05 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005132/0.006578, allocations: 324.5 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.006621, allocations: 11.98 kB / 276.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.15e-05/0.006672, allocations: 20.92 kB / 276.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.006867, allocations: 149.5 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.00688, allocations: 8.375 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.006914, allocations: 12.38 kB / 277.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00033/0.007244, allocations: 219.7 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.007259, allocations: 192 / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.007276, allocations: 8.375 kB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.007284, allocations: 3.938 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.949e-05/0.007353, allocations: 35.92 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000479/0.007832, allocations: 450 kB / 277.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.00806, allocations: 103.7 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.426e-05/0.008114, allocations: 42.7 kB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.008138, allocations: 12.08 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.008163, allocations: 34.56 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 3.938e-06/0.008167, allocations: 3.984 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002353/0.008402, allocations: 93.53 kB / 278 MB, free: 12.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.008471, allocations: 111.2 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.175e-05/0.008553, allocations: 137.6 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.008567, allocations: 29.7 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.014e-05/0.008637, allocations: 108.1 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.00866, allocations: 27.77 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.008697, allocations: 21.84 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.377e-05/0.008781, allocations: 330.8 kB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.901e-05/0.0088, allocations: 4 kB / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.965e-05/0.008849, allocations: 70.72 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.736e-05/0.008927, allocations: 78.83 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.008929, allocations: 0 / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001213/0.009051, allocations: 89.47 kB / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.009067, allocations: 8 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.009072, allocations: 0 / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.009091, allocations: 4 kB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.009201, allocations: 27.92 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.009205, allocations: 4 kB / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.289e-05/0.009258, allocations: 12.11 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.009273, allocations: 23.92 kB / 279.1 MB, free: 11.21 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 7.525e-05/0.009348, allocations: 117.8 kB / 279.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.009453, allocations: 57.62 kB / 279.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.514e-05/0.009508, allocations: 20.77 kB / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.009511, allocations: 0 / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.009514, allocations: 4 kB / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.009517, allocations: 0 / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.009704, allocations: 97.73 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.009707, allocations: 0 / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.009846, allocations: 31.98 kB / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.00985, allocations: 4 kB / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.009863, allocations: 0 / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.009866, allocations: 4 kB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.009868, allocations: 0 / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.01005, allocations: 251.5 kB / 279.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.485e-05/0.01007, allocations: 11.89 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.01009, allocations: 3.984 kB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.0102, allocations: 8 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.01023, allocations: 7.984 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.01024, allocations: 0 / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.863e-05/0.01027, allocations: 28.86 kB / 279.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01027, allocations: 0 / 279.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002955/0.01057, allocations: 27.94 kB / 279.8 MB, free: 10.49 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.0001158/0.01068, allocations: 88.3 kB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001133/0.01079, allocations: 44.78 kB / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.0108, allocations: 0 / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.837e-05/0.01083, allocations: 25.22 kB / 279.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.01124, allocations: 55.47 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007251/0.01197, allocations: 331.2 kB / 280.3 MB, free: 9.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.061e-05/0.01203, allocations: 71.33 kB / 280.4 MB, free: 9.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.269e-05/0.01207, allocations: 4.984 kB / 280.4 MB, free: 9.812 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.592e-05/0.01215, allocations: 67.36 kB / 280.4 MB, free: 9.746 MB / 266.7 MB Notification: Performance of SimCode: time 1.242e-06/0.01215, allocations: 4 kB / 280.5 MB, free: 9.742 MB / 266.7 MB Notification: Performance of Templates: time 0.00392/0.01607, allocations: 1.231 MB / 281.7 MB, free: 8.547 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.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.785487972665578]