Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.0008126/0.0008126, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001031/0.001844, allocations: 449.7 kB / 10.37 MB, free: 332 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.0006178/0.0006178, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001332/0.00195, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9183/0.9183, allocations: 173.4 MB / 185.8 MB, free: 8.996 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08333/1.002, allocations: 52.5 MB / 238.3 MB, free: 4.434 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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 239.5 MB, free: 3.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.06e-05/2.191e-05, allocations: 2.875 kB / 239.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00297/0.002992, allocations: 2.092 MB / 241.6 MB, free: 1.105 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005985/0.008977, allocations: 0.5101 MB / 242.1 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.009095, allocations: 0 / 242.1 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.085e-05/0.009176, allocations: 19.8 kB / 242.1 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.406e-05/0.00925, allocations: 27.67 kB / 242.2 MB, free: 0.543 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.009485, allocations: 55.81 kB / 242.2 MB, free: 500 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.009642, allocations: 123.5 kB / 242.3 MB, free: 376 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.009758, allocations: 38.27 kB / 242.4 MB, free: 332 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.009881, allocations: 75.86 kB / 242.5 MB, free: 256 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.787e-05/0.009959, allocations: 39.83 kB / 242.5 MB, free: 216 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.009988, allocations: 16 kB / 242.5 MB, free: 200 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.666e-05/0.01, allocations: 8 kB / 242.5 MB, free: 192 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.471e-05/0.01004, allocations: 23.88 kB / 242.5 MB, free: 168 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.438e-05/0.01008, allocations: 27.94 kB / 242.6 MB, free: 140 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.01024, allocations: 91.61 kB / 242.7 MB, free: 48 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.907e-05/0.01026, allocations: 0 / 242.7 MB, free: 48 kB / 234.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.01026, allocations: 0 / 242.7 MB, free: 48 kB / 234.7 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.01028, allocations: 0 / 242.7 MB, free: 48 kB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005527/0.01084, allocations: 344.2 kB / 243 MB, free: 15.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.01087, allocations: 12.03 kB / 243 MB, free: 15.67 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.959e-05/0.01092, allocations: 20.92 kB / 243 MB, free: 15.65 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002029/0.01113, allocations: 145.6 kB / 243.2 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.01115, allocations: 8.375 kB / 243.2 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.033e-05/0.01118, allocations: 12.38 kB / 243.2 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003267/0.0115, allocations: 211.6 kB / 243.4 MB, free: 15.23 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.01152, allocations: 8.125 kB / 243.4 MB, free: 15.22 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.01153, allocations: 12.31 kB / 243.4 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.01153, allocations: 3.938 kB / 243.4 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.432e-05/0.0116, allocations: 35.91 kB / 243.5 MB, free: 15.17 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003735/0.01197, allocations: 446 kB / 243.9 MB, free: 14.7 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.01209, allocations: 107.6 kB / 244 MB, free: 14.57 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.718e-05/0.01213, allocations: 38.66 kB / 244 MB, free: 14.52 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.01216, allocations: 4 kB / 244 MB, free: 14.52 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.01218, allocations: 50.48 kB / 244.1 MB, free: 14.46 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.01218, allocations: 0 / 244.1 MB, free: 14.46 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001613/0.01234, allocations: 85.59 kB / 244.2 MB, free: 14.37 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.01239, allocations: 114.8 kB / 244.3 MB, free: 14.23 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.255e-05/0.01245, allocations: 130.7 kB / 244.4 MB, free: 14.09 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.01247, allocations: 33.7 kB / 244.4 MB, free: 14.05 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.927e-05/0.01251, allocations: 104.1 kB / 244.5 MB, free: 13.95 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.01253, allocations: 31.77 kB / 244.6 MB, free: 13.91 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.01256, allocations: 21.72 kB / 244.6 MB, free: 13.89 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.01263, allocations: 326.7 kB / 244.9 MB, free: 13.56 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.278e-05/0.01265, allocations: 12.12 kB / 244.9 MB, free: 13.55 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.741e-05/0.01268, allocations: 62.8 kB / 245 MB, free: 13.46 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.823e-05/0.01274, allocations: 78.7 kB / 245.1 MB, free: 13.36 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.01274, allocations: 0 / 245.1 MB, free: 13.36 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.26e-05/0.01283, allocations: 89.48 kB / 245.2 MB, free: 13.27 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.01284, allocations: 4 kB / 245.2 MB, free: 13.26 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.01284, allocations: 4 kB / 245.2 MB, free: 13.26 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.01285, allocations: 0 / 245.2 MB, free: 13.26 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.013, allocations: 31.97 kB / 245.2 MB, free: 13.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.013, allocations: 7.938 kB / 245.2 MB, free: 13.22 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.114e-05/0.01304, allocations: 15.94 kB / 245.2 MB, free: 13.2 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.01305, allocations: 8.156 kB / 245.2 MB, free: 13.2 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 6.356e-05/0.01311, allocations: 121.8 kB / 245.3 MB, free: 13.07 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.14e-05/0.01318, allocations: 61.61 kB / 245.4 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.01321, allocations: 16.78 kB / 245.4 MB, free: 12.98 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.01321, allocations: 0 / 245.4 MB, free: 12.98 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.01321, allocations: 0 / 245.4 MB, free: 12.98 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.01321, allocations: 4 kB / 245.4 MB, free: 12.98 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.01334, allocations: 97.73 kB / 245.5 MB, free: 12.87 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.01334, allocations: 4 kB / 245.5 MB, free: 12.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.01345, allocations: 39.3 kB / 245.6 MB, free: 12.83 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.334e-05/0.01346, allocations: 19.88 kB / 245.6 MB, free: 12.81 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.01346, allocations: 0 / 245.6 MB, free: 12.81 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.01347, allocations: 4 kB / 245.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.01347, allocations: 0 / 245.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.01347, allocations: 0 / 245.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.01361, allocations: 239.6 kB / 245.8 MB, free: 12.55 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.01362, allocations: 0 / 245.8 MB, free: 12.55 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.934e-05/0.01368, allocations: 8.234 kB / 245.8 MB, free: 12.54 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.634e-05/0.01371, allocations: 11.92 kB / 245.8 MB, free: 12.53 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-06/0.01371, allocations: 0 / 245.8 MB, free: 12.53 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.811e-05/0.01373, allocations: 24.83 kB / 245.9 MB, free: 12.5 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01373, allocations: 4.031 kB / 245.9 MB, free: 12.5 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001673/0.01389, allocations: 27.95 kB / 245.9 MB, free: 12.47 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 (14): * Single equations (assignments): 14 * 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 8.942e-05/0.01398, allocations: 88.34 kB / 246 MB, free: 12.38 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.95e-05/0.01407, allocations: 52.7 kB / 246 MB, free: 12.32 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.01408, allocations: 4 kB / 246 MB, free: 12.32 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.052e-05/0.0141, allocations: 16.86 kB / 246.1 MB, free: 12.3 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.01436, allocations: 54.44 kB / 246.1 MB, free: 12.25 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.01567, allocations: 319.4 kB / 246.4 MB, free: 11.91 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.307e-05/0.01571, allocations: 71.33 kB / 246.5 MB, free: 11.82 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.866e-05/0.01574, allocations: 8.984 kB / 246.5 MB, free: 11.81 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.994e-05/0.0158, allocations: 67.36 kB / 246.6 MB, free: 11.74 MB / 250.7 MB Notification: Performance of SimCode: time 7.12e-07/0.0158, allocations: 0 / 246.6 MB, free: 11.74 MB / 250.7 MB Notification: Performance of Templates: time 0.002889/0.01869, allocations: 1.274 MB / 247.8 MB, free: 10.52 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.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.4561541080474854]