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.001334/0.001334, allocations: 80.67 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001354/0.001354, allocations: 156.8 kB / 23.94 MB, free: 4.176 MB / 14.72 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 1.441/1.441, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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 2.034e-06/2.034e-06, allocations: 5.062 kB / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.873e-05, allocations: 2.281 kB / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.0033/0.003329, allocations: 1.962 MB / 320.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008762/0.004205, allocations: 0.5027 MB / 321.4 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.00431, allocations: 6.125 kB / 321.4 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.004421, allocations: 16.75 kB / 321.4 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.004567, allocations: 31.17 kB / 321.4 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.004801, allocations: 61.52 kB / 321.5 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.004978, allocations: 122.9 kB / 321.6 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.005126, allocations: 49.92 kB / 321.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.005262, allocations: 68.47 kB / 321.7 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.865e-05/0.00535, allocations: 41.77 kB / 321.8 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.725e-05/0.005388, allocations: 15.16 kB / 321.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.184e-05/0.00541, allocations: 10.12 kB / 321.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.906e-05/0.005439, allocations: 33 kB / 321.8 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.423e-05/0.005493, allocations: 36.81 kB / 321.8 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002108/0.005704, allocations: 137.9 kB / 322 MB, free: 1.605 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.005707, allocations: 0 / 322 MB, free: 1.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.005709, allocations: 1.344 kB / 322 MB, free: 1.605 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.005714, allocations: 0 / 322 MB, free: 1.605 MB / 286.1 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.0005677/0.006282, allocations: 354 kB / 322.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.006321, allocations: 15.2 kB / 322.3 MB, free: 1.289 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.398e-05/0.006365, allocations: 16.09 kB / 322.4 MB, free: 1.281 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.006605, allocations: 148 kB / 322.5 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.006621, allocations: 10 kB / 322.5 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.053e-05/0.006661, allocations: 12.47 kB / 322.5 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004997/0.007161, allocations: 246.6 kB / 322.8 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.007177, allocations: 192 / 322.8 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.007192, allocations: 7.062 kB / 322.8 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.007199, allocations: 7.203 kB / 322.8 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002448/0.007444, allocations: 87.42 kB / 322.9 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004776/0.007921, allocations: 496.4 kB / 323.4 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.008254, allocations: 140.8 kB / 323.5 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.008411, allocations: 77.22 kB / 323.6 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.008439, allocations: 4.266 kB / 323.6 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.75e-05/0.008456, allocations: 34.84 kB / 323.6 MB, free: 312 kB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.008458, allocations: 0 / 323.6 MB, free: 312 kB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005326/0.00899, allocations: 186 kB / 323.8 MB, free: 228 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.009038, allocations: 111.6 kB / 323.9 MB, free: 96 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.00917, allocations: 133.7 kB / 324 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.00919, allocations: 30.92 kB / 324.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.527e-05/0.009275, allocations: 113.8 kB / 324.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.652e-05/0.009372, allocations: 25.75 kB / 324.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.426e-05/0.009426, allocations: 26.81 kB / 324.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.009585, allocations: 323.9 kB / 324.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.009698, allocations: 30.48 kB / 324.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.009844, allocations: 81.45 kB / 324.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.01011, allocations: 119 kB / 324.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01011, allocations: 1.156 kB / 324.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003175/0.01043, allocations: 131.3 kB / 324.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.01045, allocations: 9.938 kB / 324.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.01046, allocations: 2.281 kB / 324.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.01048, allocations: 2.891 kB / 324.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.01061, allocations: 33.8 kB / 324.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.01062, allocations: 3.016 kB / 324.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.036e-05/0.01071, allocations: 17.41 kB / 325 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.01072, allocations: 8.469 kB / 325 MB, free: 15.21 MB / 302.1 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 0.0001315/0.01085, allocations: 125.2 kB / 325.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.01103, allocations: 84.34 kB / 325.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.109e-05/0.01111, allocations: 17.98 kB / 325.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.01111, allocations: 2.938 kB / 325.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.01112, allocations: 0 / 325.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.01113, allocations: 1.875 kB / 325.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.01137, allocations: 147 kB / 325.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.01137, allocations: 0 / 325.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.01155, allocations: 34.19 kB / 325.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.01156, allocations: 5.844 kB / 325.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.01157, allocations: 6.625 kB / 325.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.01158, allocations: 1.875 kB / 325.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.01158, allocations: 3.938 kB / 325.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006403/0.01222, allocations: 379 kB / 325.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.465e-05/0.01224, allocations: 13.86 kB / 325.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.01227, allocations: 5.312 kB / 325.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.01241, allocations: 11.56 kB / 325.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.01246, allocations: 4.625 kB / 325.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.01248, allocations: 12.5 kB / 325.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.783e-05/0.01256, allocations: 99.61 kB / 325.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01256, allocations: 0 / 325.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000323/0.01288, allocations: 31.12 kB / 325.9 MB, free: 14.48 MB / 302.1 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 0.0001329/0.01301, allocations: 104.4 kB / 326 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003141/0.01333, allocations: 97.44 kB / 326.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.01333, allocations: 0 / 326.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.01343, allocations: 30.62 kB / 326.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005345/0.01397, allocations: 56.61 kB / 326.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007059/0.01467, allocations: 331.1 kB / 326.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.01479, allocations: 105.6 kB / 326.6 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.768e-05/0.01483, allocations: 7.266 kB / 326.6 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.437e-05/0.01487, allocations: 14.61 kB / 326.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.01487, allocations: 1.375 kB / 326.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of Templates: time 0.004647/0.01952, allocations: 1.19 MB / 327.9 MB, free: 13.84 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.24030589312315]