Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000759/0.000759, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003077/0.003077, allocations: 143.4 kB / 24.68 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.7973/0.7973, allocations: 173.4 MB / 201.2 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 319.7 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.398e-05/1.513e-05, allocations: 2.281 kB / 319.7 MB, free: 5.895 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.001952/0.001967, allocations: 2.015 MB / 321.7 MB, free: 3.867 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005386/0.002506, allocations: 486.6 kB / 322.2 MB, free: 3.387 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.773e-05/0.002583, allocations: 0 / 322.2 MB, free: 3.387 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.313e-05/0.002676, allocations: 19.8 kB / 322.2 MB, free: 3.367 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.241e-05/0.002729, allocations: 35.64 kB / 322.2 MB, free: 3.332 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.002933, allocations: 59.86 kB / 322.3 MB, free: 3.273 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.003067, allocations: 139.4 kB / 322.4 MB, free: 3.137 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.00318, allocations: 33.98 kB / 322.4 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.797e-05/0.003258, allocations: 75.8 kB / 322.5 MB, free: 3.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.682e-05/0.003315, allocations: 43.88 kB / 322.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.003339, allocations: 8 kB / 322.6 MB, free: 2.969 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.208e-05/0.003351, allocations: 15.94 kB / 322.6 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.244e-05/0.003373, allocations: 27.91 kB / 322.6 MB, free: 2.926 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.007e-05/0.003403, allocations: 35.92 kB / 322.6 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.003545, allocations: 139.4 kB / 322.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.463e-06/0.003546, allocations: 0 / 322.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.003547, allocations: 4 kB / 322.8 MB, free: 2.75 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.00355, allocations: 0 / 322.8 MB, free: 2.75 MB / 282.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.0003939/0.003944, allocations: 361.7 kB / 323.1 MB, free: 2.367 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.003974, allocations: 8.922 kB / 323.1 MB, free: 2.359 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.004004, allocations: 12.89 kB / 323.2 MB, free: 2.348 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.004169, allocations: 165.5 kB / 323.3 MB, free: 2.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.004179, allocations: 8.375 kB / 323.3 MB, free: 2.152 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.004202, allocations: 12.38 kB / 323.3 MB, free: 2.141 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.004504, allocations: 223.2 kB / 323.6 MB, free: 1.898 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.004515, allocations: 12.08 kB / 323.6 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.004527, allocations: 4.375 kB / 323.6 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.004534, allocations: 7.938 kB / 323.6 MB, free: 1.875 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.00467, allocations: 87.25 kB / 323.7 MB, free: 1.793 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003861/0.005056, allocations: 0.4888 MB / 324.2 MB, free: 1.254 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.005265, allocations: 135.9 kB / 324.3 MB, free: 1.094 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.089e-05/0.005345, allocations: 70.62 kB / 324.4 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.005363, allocations: 4 kB / 324.4 MB, free: 1.012 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.005379, allocations: 42.5 kB / 324.4 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.00538, allocations: 0 / 324.4 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002813/0.005662, allocations: 177.4 kB / 324.6 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/0.005717, allocations: 115.2 kB / 324.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.764e-05/0.005784, allocations: 138.2 kB / 324.8 MB, free: 0.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.005795, allocations: 29.64 kB / 324.9 MB, free: 476 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.672e-05/0.005841, allocations: 119.9 kB / 325 MB, free: 352 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.194e-05/0.005853, allocations: 19.98 kB / 325 MB, free: 332 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.005884, allocations: 29.7 kB / 325 MB, free: 296 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.891e-05/0.005963, allocations: 322.8 kB / 325.3 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.107e-05/0.006014, allocations: 27.98 kB / 325.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.762e-05/0.006081, allocations: 87.64 kB / 325.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.006204, allocations: 114.8 kB / 325.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.006206, allocations: 0 / 325.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001488/0.006355, allocations: 137.6 kB / 325.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.006365, allocations: 8.031 kB / 325.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.006369, allocations: 0 / 325.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.006379, allocations: 4.234 kB / 325.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.329e-05/0.006442, allocations: 35.91 kB / 325.7 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.006447, allocations: 0 / 325.7 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.446e-05/0.006491, allocations: 23.83 kB / 325.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.006498, allocations: 7.984 kB / 325.8 MB, free: 15.47 MB / 298.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.163e-05/0.00656, allocations: 121.8 kB / 325.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.857e-05/0.006648, allocations: 89.56 kB / 326 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.552e-05/0.006674, allocations: 24.72 kB / 326 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.006676, allocations: 4 kB / 326 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.00668, allocations: 0 / 326 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.006683, allocations: 3.984 kB / 326 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.006813, allocations: 145.1 kB / 326.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.006814, allocations: 4 kB / 326.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.006917, allocations: 43.91 kB / 326.2 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.006919, allocations: 0 / 326.2 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.006929, allocations: 8 kB / 326.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.006931, allocations: 3.984 kB / 326.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.006932, allocations: 4 kB / 326.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.007225, allocations: 379.4 kB / 326.6 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.284e-05/0.007238, allocations: 11.89 kB / 326.6 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.007253, allocations: 7.984 kB / 326.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.573e-05/0.007319, allocations: 4.094 kB / 326.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.058e-05/0.007349, allocations: 15.92 kB / 326.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.007355, allocations: 4 kB / 326.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.832e-05/0.007393, allocations: 109.7 kB / 326.7 MB, free: 14.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007393, allocations: 0 / 326.7 MB, free: 14.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001864/0.00758, allocations: 27.89 kB / 326.8 MB, free: 14.41 MB / 298.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.294e-05/0.007643, allocations: 103.2 kB / 326.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001591/0.007802, allocations: 95.75 kB / 327 MB, free: 14.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-06/0.007803, allocations: 4.438 kB / 327 MB, free: 14.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.462e-05/0.007847, allocations: 31.92 kB / 327 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.008153, allocations: 52 kB / 327 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004858/0.008639, allocations: 385.3 kB / 327.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.791e-05/0.008697, allocations: 102.2 kB / 327.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/0.008726, allocations: 20.5 kB / 327.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.008727, allocations: 0 / 327.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of Templates: time 0.001866/0.01059, allocations: 1.599 MB / 329.1 MB, free: 11.98 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 3.857423869892955]