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.0008867/0.0008867, allocations: 80.8 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.0008917/0.0008917, allocations: 169.9 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.9792/0.9792, allocations: 177.1 MB / 205.3 MB, free: 5.453 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.493e-06/1.493e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.096e-05/2.245e-05, allocations: 2.312 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002548/0.002571, allocations: 2.15 MB / 275.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007508/0.003321, allocations: 0.5334 MB / 276.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.065e-05/0.003412, allocations: 0 / 276.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.89e-05/0.003511, allocations: 19.8 kB / 276.2 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.36e-05/0.003574, allocations: 27.72 kB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.003811, allocations: 67.73 kB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001416/0.003952, allocations: 131.5 kB / 276.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.004057, allocations: 42.61 kB / 276.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.929e-05/0.004157, allocations: 75.81 kB / 276.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.979e-05/0.004226, allocations: 39.88 kB / 276.5 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.004247, allocations: 12 kB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.307e-05/0.00426, allocations: 8 kB / 276.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.502e-05/0.004285, allocations: 27.91 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.171e-05/0.004317, allocations: 39.86 kB / 276.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.004447, allocations: 91.64 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.004449, allocations: 0 / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.00445, allocations: 4 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.828e-06/0.004454, allocations: 0 / 276.7 MB, free: 13.97 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.0003408/0.004795, allocations: 328.3 kB / 277 MB, free: 13.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.949e-05/0.004824, allocations: 8.031 kB / 277.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.556e-05/0.00486, allocations: 24.86 kB / 277.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.005045, allocations: 153 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.005056, allocations: 12.38 kB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.395e-05/0.00508, allocations: 16.33 kB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.005306, allocations: 191.8 kB / 277.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.005315, allocations: 192 / 277.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.005324, allocations: 8.375 kB / 277.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.005331, allocations: 7.938 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.738e-05/0.005378, allocations: 35.91 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003772/0.005755, allocations: 453.9 kB / 277.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001505/0.005906, allocations: 103.7 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.77e-05/0.005944, allocations: 46.62 kB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.005959, allocations: 4 kB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.00598, allocations: 42.55 kB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.005981, allocations: 0 / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001598/0.006141, allocations: 93.53 kB / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.006192, allocations: 110.8 kB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.386e-05/0.006256, allocations: 137.9 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.919e-06/0.006266, allocations: 33.83 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.084e-05/0.006307, allocations: 112 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.366e-05/0.006321, allocations: 27.77 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-05/0.006352, allocations: 25.72 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.937e-05/0.006422, allocations: 330.7 kB / 279 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.62e-05/0.006438, allocations: 7.984 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.813e-05/0.006476, allocations: 67.61 kB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.83e-05/0.006544, allocations: 90.88 kB / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.006547, allocations: 0 / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.651e-05/0.006633, allocations: 77.48 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.006649, allocations: 11.98 kB / 279.2 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.006654, allocations: 0 / 279.2 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.006665, allocations: 4.219 kB / 279.2 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.00677, allocations: 35.98 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.006774, allocations: 3.938 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.621e-05/0.00681, allocations: 15.89 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.006815, allocations: 0 / 279.3 MB, free: 11.12 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.98e-05/0.006875, allocations: 117.8 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.37e-05/0.006969, allocations: 73.59 kB / 279.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.409e-05/0.006993, allocations: 16.78 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.006996, allocations: 4 kB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.006997, allocations: 0 / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.007001, allocations: 4 kB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.00712, allocations: 93.78 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.007122, allocations: 0 / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/0.007267, allocations: 55.91 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.007269, allocations: 0 / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.007281, allocations: 7.984 kB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.007282, allocations: 0 / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.007283, allocations: 0 / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.007417, allocations: 239.6 kB / 279.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.376e-05/0.007431, allocations: 11.89 kB / 279.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.007446, allocations: 12.03 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.246e-05/0.007508, allocations: 4 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-05/0.007535, allocations: 11.92 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.007542, allocations: 4 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.996e-05/0.007562, allocations: 27.92 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007562, allocations: 0 / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001655/0.007727, allocations: 27.95 kB / 280 MB, free: 10.38 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 7.665e-05/0.007804, allocations: 92.34 kB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.247e-05/0.007896, allocations: 60.66 kB / 280.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.0079, allocations: 0 / 280.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.031e-05/0.007921, allocations: 20.84 kB / 280.2 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.008183, allocations: 51.8 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006122/0.008795, allocations: 343.8 kB / 280.5 MB, free: 9.773 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.259e-05/0.008837, allocations: 79.33 kB / 280.6 MB, free: 9.676 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.114e-05/0.008869, allocations: 4.984 kB / 280.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.213e-05/0.008931, allocations: 71.3 kB / 280.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.008932, allocations: 0 / 280.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of Templates: time 0.003081/0.01201, allocations: 1.431 MB / 282.1 MB, free: 8.238 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 -s gbode -gbm=radauIIA3 -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.5699870828539133]