Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.002272/0.002272, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.00241/0.00241, allocations: 149.5 kB / 24.26 MB, free: 168 kB / 18.57 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.51/1.51, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.255e-05/2.384e-05, allocations: 2.312 kB / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003681/0.003704, allocations: 2.031 MB / 269.3 MB, free: 4.719 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.004813, allocations: 0.5531 MB / 269.9 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.487e-05/0.004908, allocations: 0 / 269.9 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.005022, allocations: 19.8 kB / 269.9 MB, free: 4.141 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.005195, allocations: 43.64 kB / 269.9 MB, free: 4.098 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002808/0.005476, allocations: 71.67 kB / 270 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.005697, allocations: 135.5 kB / 270.1 MB, free: 3.895 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.005842, allocations: 34.11 kB / 270.2 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.005974, allocations: 75.81 kB / 270.2 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.661e-05/0.00607, allocations: 39.88 kB / 270.3 MB, free: 3.742 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.252e-05/0.006103, allocations: 12 kB / 270.3 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.656e-05/0.00613, allocations: 15.94 kB / 270.3 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.875e-05/0.006198, allocations: 35.83 kB / 270.4 MB, free: 3.68 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.604e-05/0.006264, allocations: 47.91 kB / 270.4 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.006509, allocations: 139.5 kB / 270.5 MB, free: 3.496 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.006513, allocations: 0 / 270.5 MB, free: 3.496 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.006514, allocations: 0 / 270.5 MB, free: 3.496 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.006519, allocations: 0 / 270.5 MB, free: 3.496 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007187/0.007238, allocations: 495.4 kB / 271 MB, free: 2.977 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.007274, allocations: 8.922 kB / 271 MB, free: 2.969 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.91e-05/0.007343, allocations: 32.83 kB / 271.1 MB, free: 2.938 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.007605, allocations: 176.3 kB / 271.2 MB, free: 2.738 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.007625, allocations: 12.36 kB / 271.2 MB, free: 2.727 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.598e-05/0.007661, allocations: 16.33 kB / 271.3 MB, free: 2.711 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005182/0.008179, allocations: 263.5 kB / 271.5 MB, free: 2.426 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.008192, allocations: 192 / 271.5 MB, free: 2.426 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.008212, allocations: 8.375 kB / 271.5 MB, free: 2.418 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.008218, allocations: 7.938 kB / 271.5 MB, free: 2.41 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.008428, allocations: 75.89 kB / 271.6 MB, free: 2.336 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007614/0.009189, allocations: 0.6641 MB / 272.3 MB, free: 1.617 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.009556, allocations: 161.3 kB / 272.4 MB, free: 1.422 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.009709, allocations: 83.06 kB / 272.5 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.009735, allocations: 0 / 272.5 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.009768, allocations: 37.39 kB / 272.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 9.92e-07/0.009769, allocations: 0 / 272.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004749/0.01024, allocations: 181.4 kB / 272.7 MB, free: 1.098 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.139e-05/0.01034, allocations: 110.8 kB / 272.8 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002119/0.01055, allocations: 225.9 kB / 273.1 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.01057, allocations: 25.7 kB / 273.1 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.01069, allocations: 171.2 kB / 273.2 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.906e-05/0.01072, allocations: 27.78 kB / 273.3 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.049e-05/0.01078, allocations: 35.31 kB / 273.3 MB, free: 464 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002714/0.01105, allocations: 0.4961 MB / 273.8 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.295e-05/0.01113, allocations: 24.11 kB / 273.8 MB, free: 15.92 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.01126, allocations: 97.48 kB / 273.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/0.01148, allocations: 133.3 kB / 274.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.01149, allocations: 0 / 274.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002567/0.01174, allocations: 129.4 kB / 274.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.01176, allocations: 11.98 kB / 274.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.01177, allocations: 0 / 274.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.01178, allocations: 4.234 kB / 274.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.01189, allocations: 27.98 kB / 274.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.0119, allocations: 4 kB / 274.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.621e-05/0.01196, allocations: 12.11 kB / 274.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.01197, allocations: 8 kB / 274.2 MB, free: 15.43 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 0.000133/0.01211, allocations: 172.5 kB / 274.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.01228, allocations: 101.9 kB / 274.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.496e-05/0.01235, allocations: 20.77 kB / 274.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.01236, allocations: 0 / 274.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.01236, allocations: 0 / 274.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.01237, allocations: 4 kB / 274.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002627/0.01263, allocations: 168.5 kB / 274.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01263, allocations: 0 / 274.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.01279, allocations: 35.98 kB / 274.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.01279, allocations: 4 kB / 274.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.01281, allocations: 4 kB / 274.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.01282, allocations: 3.938 kB / 274.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.01282, allocations: 4 kB / 274.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005622/0.01338, allocations: 474.5 kB / 275.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.216e-05/0.01344, allocations: 23.89 kB / 275.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.01347, allocations: 0 / 275.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.01358, allocations: 15.92 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/0.01362, allocations: 4 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.956e-06/0.01363, allocations: 8.031 kB / 275.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001247/0.01376, allocations: 168.6 kB / 275.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01376, allocations: 0 / 275.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002917/0.01405, allocations: 35.83 kB / 275.5 MB, free: 14.13 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 (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.0001128/0.01416, allocations: 103.2 kB / 275.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002642/0.01443, allocations: 91.83 kB / 275.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.01443, allocations: 448 / 275.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.965e-05/0.01451, allocations: 35.67 kB / 275.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005778/0.01508, allocations: 66.91 kB / 275.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007127/0.0158, allocations: 383.6 kB / 276.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001236/0.01592, allocations: 110.2 kB / 276.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.8e-05/0.01596, allocations: 8.656 kB / 276.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.915e-05/0.016, allocations: 16.5 kB / 276.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.016, allocations: 0 / 276.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of Templates: time 0.004693/0.02069, allocations: 1.375 MB / 277.6 MB, free: 11.94 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.375658230041154]