Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001536/0.001536, allocations: 87.58 kB / 21.19 MB, free: 3.371 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.001562/0.001562, allocations: 165 kB / 24.56 MB, free: 4 kB / 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 1.031/1.031, allocations: 177.1 MB / 205 MB, free: 5.625 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.ClockedWithDiscreteTextbookController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 272.9 MB, free: 1.586 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.303e-05, allocations: 6.312 kB / 272.9 MB, free: 1.578 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003733/0.003756, allocations: 2.069 MB / 275 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.005048, allocations: 0.5219 MB / 275.5 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.005168, allocations: 7.938 kB / 275.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.005302, allocations: 15.8 kB / 275.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.518e-05/0.005387, allocations: 23.8 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003724/0.00576, allocations: 59.73 kB / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000223/0.005983, allocations: 127.5 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.006156, allocations: 33.62 kB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.006308, allocations: 79.73 kB / 275.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.536e-05/0.006403, allocations: 43.88 kB / 275.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.106e-05/0.006434, allocations: 12 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.923e-05/0.006453, allocations: 8 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.588e-05/0.006489, allocations: 23.91 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.616e-05/0.006545, allocations: 39.86 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.006747, allocations: 83.7 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.006751, allocations: 0 / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.006752, allocations: 4 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.00676, allocations: 4 kB / 276.1 MB, free: 14.41 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005687/0.007328, allocations: 444.1 kB / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.00737, allocations: 8.031 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.802e-05/0.007438, allocations: 32.78 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002328/0.007671, allocations: 156.3 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.007691, allocations: 16.38 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/0.007742, allocations: 16.31 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004505/0.008192, allocations: 224.8 kB / 277 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.008209, allocations: 4.188 kB / 277 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.008224, allocations: 384 / 277 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.008237, allocations: 7.938 kB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.00834, allocations: 39.91 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006527/0.008993, allocations: 0.6329 MB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.009209, allocations: 137.4 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.447e-05/0.009293, allocations: 55.08 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.009323, allocations: 4 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.009353, allocations: 37.39 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 3.266e-06/0.009356, allocations: 3.984 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003591/0.009715, allocations: 121.5 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.977e-05/0.009785, allocations: 106.8 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.009915, allocations: 190 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.00993, allocations: 29.64 kB / 278.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003828/0.01031, allocations: 170.7 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.624e-05/0.01034, allocations: 23.84 kB / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.351e-05/0.01039, allocations: 31.38 kB / 278.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.01054, allocations: 0.4961 MB / 279 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.86e-05/0.01058, allocations: 4 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.822e-05/0.01066, allocations: 81.48 kB / 279.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.01078, allocations: 109.3 kB / 279.2 MB, free: 10.92 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.01078, allocations: 4 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000169/0.01095, allocations: 105.4 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.01097, allocations: 4 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.01098, allocations: 4 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.011, allocations: 4 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.01113, allocations: 28.2 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.01113, allocations: 0 / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.467e-05/0.0112, allocations: 23.83 kB / 279.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.01121, allocations: 4 kB / 279.4 MB, free: 10.74 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 9.413e-05/0.0113, allocations: 168.5 kB / 279.6 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.01143, allocations: 73.58 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.087e-05/0.01147, allocations: 16.78 kB / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.01148, allocations: 4 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.01148, allocations: 0 / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.01149, allocations: 0 / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.01172, allocations: 156.4 kB / 279.8 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01172, allocations: 0 / 279.8 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.01186, allocations: 27.98 kB / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.01187, allocations: 7.984 kB / 279.8 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.01189, allocations: 0 / 279.8 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.01189, allocations: 7.938 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.0119, allocations: 0 / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000353/0.01225, allocations: 406.7 kB / 280.3 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.914e-05/0.01227, allocations: 11.91 kB / 280.3 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.01229, allocations: 0 / 280.3 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.01241, allocations: 12.03 kB / 280.3 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.01246, allocations: 7.984 kB / 280.3 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.288e-06/0.01247, allocations: 4 kB / 280.3 MB, free: 9.777 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.585e-05/0.01254, allocations: 138.7 kB / 280.4 MB, free: 9.645 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01254, allocations: 3.938 kB / 280.4 MB, free: 9.641 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003369/0.01287, allocations: 31.88 kB / 280.5 MB, free: 9.609 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 (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 0.0001016/0.01297, allocations: 107.2 kB / 280.6 MB, free: 9.496 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001751/0.01315, allocations: 63.92 kB / 280.6 MB, free: 9.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01315, allocations: 0 / 280.6 MB, free: 9.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.745e-05/0.01319, allocations: 23.67 kB / 280.6 MB, free: 9.402 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005219/0.01371, allocations: 56.02 kB / 280.7 MB, free: 9.348 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009257/0.01464, allocations: 354.3 kB / 281 MB, free: 8.969 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.188e-05/0.0147, allocations: 75.27 kB / 281.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.573e-05/0.01473, allocations: 8.5 kB / 281.1 MB, free: 8.867 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.361e-05/0.01478, allocations: 16.5 kB / 281.1 MB, free: 8.848 MB / 266.7 MB Notification: Performance of SimCode: time 8.21e-07/0.01478, allocations: 0 / 281.1 MB, free: 8.848 MB / 266.7 MB Notification: Performance of Templates: time 0.004143/0.01892, allocations: 1.189 MB / 282.3 MB, free: 7.711 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.0119645758531988]