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.0006898/0.0006898, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001006/0.001696, allocations: 445.8 kB / 10.44 MB, free: 252 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.0006295/0.0006295, allocations: 148.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000907/0.001537, allocations: 475.6 kB / 11.8 MB, free: 2.363 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.8767/0.8767, allocations: 173.4 MB / 185.9 MB, free: 8.93 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07585/0.9526, allocations: 52.5 MB / 238.4 MB, free: 4.371 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.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.262e-06/1.262e-06, allocations: 0 / 239.7 MB, free: 3.113 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.618e-06/1.088e-05, allocations: 5.688 kB / 239.7 MB, free: 3.109 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002231/0.002242, allocations: 2.147 MB / 241.9 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005708/0.002813, allocations: 0.5101 MB / 242.4 MB, free: 444 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.5e-05/0.002898, allocations: 3.938 kB / 242.4 MB, free: 440 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.707e-05/0.002955, allocations: 19.8 kB / 242.4 MB, free: 420 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.86e-05/0.003013, allocations: 23.78 kB / 242.4 MB, free: 396 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001678/0.003181, allocations: 63.78 kB / 242.5 MB, free: 332 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001561/0.003337, allocations: 127.5 kB / 242.6 MB, free: 204 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.003443, allocations: 42.62 kB / 242.6 MB, free: 152 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.003549, allocations: 95.73 kB / 242.7 MB, free: 56 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.83e-05/0.003617, allocations: 39.88 kB / 242.8 MB, free: 16 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.003641, allocations: 12 kB / 242.8 MB, free: 4 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.61e-05/0.003667, allocations: 12.05 kB / 242.8 MB, free: 15.99 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.763e-05/0.003695, allocations: 15.94 kB / 242.8 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.103e-05/0.003726, allocations: 35.88 kB / 242.8 MB, free: 15.94 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.003861, allocations: 87.56 kB / 242.9 MB, free: 15.86 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.003868, allocations: 0 / 242.9 MB, free: 15.86 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.11e-07/0.003868, allocations: 0 / 242.9 MB, free: 15.86 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.003877, allocations: 0 / 242.9 MB, free: 15.86 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.0004214/0.004298, allocations: 364 kB / 243.3 MB, free: 15.48 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.004328, allocations: 8.031 kB / 243.3 MB, free: 15.47 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.004366, allocations: 20.92 kB / 243.3 MB, free: 15.45 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.004526, allocations: 145.5 kB / 243.5 MB, free: 15.28 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.004535, allocations: 8.375 kB / 243.5 MB, free: 15.27 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.757e-05/0.004563, allocations: 12.38 kB / 243.5 MB, free: 15.26 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002368/0.004799, allocations: 203.7 kB / 243.7 MB, free: 15.04 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.00481, allocations: 4.141 kB / 243.7 MB, free: 15.03 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.00482, allocations: 8.375 kB / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.004826, allocations: 7.938 kB / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.657e-05/0.004873, allocations: 27.92 kB / 243.7 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003815/0.005254, allocations: 446 kB / 244.2 MB, free: 14.52 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001616/0.005416, allocations: 103.7 kB / 244.3 MB, free: 14.39 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.015e-05/0.005456, allocations: 50.59 kB / 244.3 MB, free: 14.33 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.005476, allocations: 4 kB / 244.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.005496, allocations: 38.5 kB / 244.4 MB, free: 14.28 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.005498, allocations: 0 / 244.4 MB, free: 14.28 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001599/0.005658, allocations: 97.75 kB / 244.4 MB, free: 14.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.005716, allocations: 114.8 kB / 244.6 MB, free: 14.04 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.666e-05/0.005783, allocations: 142.7 kB / 244.7 MB, free: 13.89 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.005795, allocations: 33.7 kB / 244.7 MB, free: 13.85 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.636e-05/0.005841, allocations: 111.9 kB / 244.8 MB, free: 13.73 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.005858, allocations: 23.97 kB / 244.9 MB, free: 13.71 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.25e-05/0.00589, allocations: 29.7 kB / 244.9 MB, free: 13.68 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.827e-05/0.005968, allocations: 326.8 kB / 245.2 MB, free: 13.35 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.304e-05/0.005981, allocations: 4 kB / 245.2 MB, free: 13.34 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.027e-05/0.006022, allocations: 71.64 kB / 245.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.695e-05/0.006089, allocations: 78.78 kB / 245.4 MB, free: 13.14 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.006091, allocations: 0 / 245.4 MB, free: 13.14 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.029e-05/0.006171, allocations: 89.48 kB / 245.5 MB, free: 13.05 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.006184, allocations: 4 kB / 245.5 MB, free: 13.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.006188, allocations: 4 kB / 245.5 MB, free: 13.04 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-06/0.006197, allocations: 240 / 245.5 MB, free: 13.04 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.591e-05/0.006293, allocations: 35.91 kB / 245.5 MB, free: 13.01 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.006297, allocations: 4.219 kB / 245.5 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.308e-05/0.006331, allocations: 15.88 kB / 245.5 MB, free: 12.99 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-06/0.006339, allocations: 8 kB / 245.5 MB, free: 12.98 MB / 250.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.541e-05/0.006394, allocations: 121.8 kB / 245.6 MB, free: 12.85 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.278e-05/0.006467, allocations: 65.66 kB / 245.7 MB, free: 12.78 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.864e-05/0.006496, allocations: 20.77 kB / 245.7 MB, free: 12.76 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.006497, allocations: 0 / 245.7 MB, free: 12.76 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.0065, allocations: 4 kB / 245.7 MB, free: 12.75 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.006503, allocations: 0 / 245.7 MB, free: 12.75 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.006618, allocations: 101.7 kB / 245.8 MB, free: 12.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.006619, allocations: 4 kB / 245.8 MB, free: 12.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.006743, allocations: 50.48 kB / 245.9 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.153e-05/0.006755, allocations: 15.88 kB / 245.9 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.006757, allocations: 4 kB / 245.9 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.006765, allocations: 4 kB / 245.9 MB, free: 12.56 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.006767, allocations: 4 kB / 245.9 MB, free: 12.56 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.006768, allocations: 0 / 245.9 MB, free: 12.56 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.006891, allocations: 247.5 kB / 246.2 MB, free: 12.3 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.006903, allocations: 0 / 246.2 MB, free: 12.3 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.824e-05/0.006962, allocations: 8 kB / 246.2 MB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.288e-05/0.006985, allocations: 12.02 kB / 246.2 MB, free: 12.28 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.006988, allocations: 0 / 246.2 MB, free: 12.28 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.979e-05/0.007008, allocations: 24.84 kB / 246.2 MB, free: 12.25 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007008, allocations: 0 / 246.2 MB, free: 12.25 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001668/0.007175, allocations: 20 kB / 246.2 MB, free: 12.23 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.748e-05/0.007242, allocations: 103.5 kB / 246.3 MB, free: 12.12 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.465e-05/0.007327, allocations: 61.08 kB / 246.4 MB, free: 12.06 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.007331, allocations: 4.281 kB / 246.4 MB, free: 12.06 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.269e-05/0.007354, allocations: 20.84 kB / 246.4 MB, free: 12.04 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.007642, allocations: 221.4 kB / 246.6 MB, free: 11.78 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.00894, allocations: 335.7 kB / 246.9 MB, free: 11.42 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.222e-05/0.008982, allocations: 75.33 kB / 247 MB, free: 11.33 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.926e-05/0.009011, allocations: 4.984 kB / 247 MB, free: 11.32 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.009076, allocations: 67.36 kB / 247.1 MB, free: 11.25 MB / 250.7 MB Notification: Performance of SimCode: time 4.9e-07/0.009077, allocations: 0 / 247.1 MB, free: 11.25 MB / 250.7 MB Notification: Performance of Templates: time 0.002747/0.01182, allocations: 1.409 MB / 248.5 MB, free: 9.914 MB / 250.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] 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","",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.199717520736158]