Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.0007351/0.0007351, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001032/0.001767, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006224/0.0006224, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009245/0.001547, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.789/0.789, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1453/0.9344, allocations: 52.48 MB / 238.5 MB, free: 7.605 MB / 234.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.ClockedWithDiscreteController,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.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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.857e-06/1.013e-05, allocations: 2.312 kB / 239.7 MB, free: 6.359 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002167/0.002177, allocations: 2.092 MB / 241.8 MB, free: 4.273 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005949/0.002772, allocations: 0.5278 MB / 242.3 MB, free: 3.742 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.741e-05/0.00285, allocations: 4.594 kB / 242.4 MB, free: 3.738 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.64e-05/0.002906, allocations: 19.8 kB / 242.4 MB, free: 3.719 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.999e-05/0.002976, allocations: 42.17 kB / 242.4 MB, free: 3.68 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.003128, allocations: 51.81 kB / 242.5 MB, free: 3.629 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.003257, allocations: 131.5 kB / 242.6 MB, free: 3.5 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.792e-05/0.003355, allocations: 38.2 kB / 242.6 MB, free: 3.457 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.657e-05/0.003451, allocations: 79.86 kB / 242.7 MB, free: 3.379 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.958e-05/0.003521, allocations: 45.28 kB / 242.7 MB, free: 3.336 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.256e-05/0.003543, allocations: 8 kB / 242.8 MB, free: 3.328 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.38e-05/0.003557, allocations: 12 kB / 242.8 MB, free: 3.316 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.566e-05/0.003583, allocations: 19.94 kB / 242.8 MB, free: 3.297 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.003615, allocations: 32.75 kB / 242.8 MB, free: 3.266 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.003737, allocations: 83.62 kB / 242.9 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.003743, allocations: 1.094 kB / 242.9 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.8e-07/0.003743, allocations: 0 / 242.9 MB, free: 3.184 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.003753, allocations: 0 / 242.9 MB, free: 3.184 MB / 234.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.0003726/0.004125, allocations: 359.2 kB / 243.3 MB, free: 2.812 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.838e-05/0.004154, allocations: 8.031 kB / 243.3 MB, free: 2.805 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.004189, allocations: 20.92 kB / 243.3 MB, free: 2.785 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.00433, allocations: 137.5 kB / 243.4 MB, free: 2.625 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.004342, allocations: 12.38 kB / 243.4 MB, free: 2.613 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.463e-05/0.004367, allocations: 12.38 kB / 243.4 MB, free: 2.602 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002528/0.00462, allocations: 225.9 kB / 243.7 MB, free: 2.355 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.00463, allocations: 192 / 243.7 MB, free: 2.355 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.004639, allocations: 7.375 kB / 243.7 MB, free: 2.352 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.004647, allocations: 7.938 kB / 243.7 MB, free: 2.344 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.966e-05/0.004697, allocations: 35.91 kB / 243.7 MB, free: 2.309 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003712/0.005068, allocations: 449.9 kB / 244.2 MB, free: 1.832 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.005216, allocations: 111.9 kB / 244.3 MB, free: 1.695 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.677e-05/0.005253, allocations: 46.62 kB / 244.3 MB, free: 1.641 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.005269, allocations: 4.969 kB / 244.3 MB, free: 1.637 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.772e-05/0.005287, allocations: 38.55 kB / 244.3 MB, free: 1.59 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.092e-06/0.005288, allocations: 0.9062 kB / 244.3 MB, free: 1.59 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001538/0.005442, allocations: 101.5 kB / 244.4 MB, free: 1.484 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.005485, allocations: 116.5 kB / 244.6 MB, free: 1.348 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.068e-05/0.005546, allocations: 137.1 kB / 244.7 MB, free: 1.203 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.758e-06/0.005555, allocations: 25.7 kB / 244.7 MB, free: 1.172 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.8e-05/0.005593, allocations: 115.9 kB / 244.8 MB, free: 1.051 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.457e-05/0.005608, allocations: 19.84 kB / 244.9 MB, free: 1.031 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.024e-05/0.005638, allocations: 30.36 kB / 244.9 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.298e-05/0.005701, allocations: 327.4 kB / 245.2 MB, free: 0.668 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.183e-05/0.005713, allocations: 8 kB / 245.2 MB, free: 0.6602 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.195e-05/0.005745, allocations: 60.81 kB / 245.3 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.538e-05/0.0058, allocations: 76.2 kB / 245.3 MB, free: 492 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.005803, allocations: 0 / 245.3 MB, free: 492 kB / 234.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.328e-05/0.005876, allocations: 87.22 kB / 245.4 MB, free: 400 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.005887, allocations: 8 kB / 245.4 MB, free: 392 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.00589, allocations: 1.688 kB / 245.4 MB, free: 392 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.005902, allocations: 4 kB / 245.4 MB, free: 388 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.006009, allocations: 35.92 kB / 245.5 MB, free: 352 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.006013, allocations: 0 / 245.5 MB, free: 352 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.306e-05/0.006047, allocations: 24.3 kB / 245.5 MB, free: 328 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.006051, allocations: 4.812 kB / 245.5 MB, free: 324 kB / 234.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.443e-05/0.006106, allocations: 115.5 kB / 245.6 MB, free: 200 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.777e-05/0.006164, allocations: 65.61 kB / 245.7 MB, free: 128 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.006195, allocations: 16.78 kB / 245.7 MB, free: 108 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.006197, allocations: 0 / 245.7 MB, free: 108 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.0062, allocations: 4.344 kB / 245.7 MB, free: 104 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.006204, allocations: 7.984 kB / 245.7 MB, free: 96 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001234/0.006327, allocations: 97.75 kB / 245.8 MB, free: 15.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.006328, allocations: 0 / 245.8 MB, free: 15.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.508e-05/0.006423, allocations: 43.91 kB / 245.9 MB, free: 15.94 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.134e-05/0.006434, allocations: 8.188 kB / 245.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.006436, allocations: 0 / 245.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.006447, allocations: 4 kB / 245.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.006449, allocations: 3.938 kB / 245.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.006451, allocations: 3.984 kB / 245.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001154/0.006566, allocations: 239.6 kB / 246.1 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.006579, allocations: 8.031 kB / 246.1 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.763e-05/0.006637, allocations: 7.984 kB / 246.1 MB, free: 15.65 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.441e-05/0.006661, allocations: 8 kB / 246.1 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-06/0.006664, allocations: 0 / 246.1 MB, free: 15.64 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.777e-05/0.006682, allocations: 25.95 kB / 246.2 MB, free: 15.61 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006682, allocations: 0 / 246.2 MB, free: 15.61 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001559/0.006838, allocations: 31.88 kB / 246.2 MB, free: 15.58 MB / 250.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.227e-05/0.0069, allocations: 88.41 kB / 246.3 MB, free: 15.49 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.332e-05/0.006984, allocations: 56.91 kB / 246.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.006988, allocations: 0 / 246.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.413e-05/0.007012, allocations: 24.84 kB / 246.3 MB, free: 15.4 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.007288, allocations: 195.5 kB / 246.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.008491, allocations: 296.4 kB / 246.8 MB, free: 14.86 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.301e-05/0.008534, allocations: 75.33 kB / 246.9 MB, free: 14.77 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.686e-05/0.008561, allocations: 4.984 kB / 246.9 MB, free: 14.76 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6e-05/0.008621, allocations: 71.36 kB / 247 MB, free: 14.69 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.008622, allocations: 0 / 247 MB, free: 14.69 MB / 250.7 MB Notification: Performance of Templates: time 0.002584/0.01121, allocations: 1.262 MB / 248.2 MB, free: 13.46 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.258652993477881]