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.001228/0.001228, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001067/0.001067, allocations: 141.2 kB / 24.89 MB, free: 9.207 MB / 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 0.9663/0.9663, allocations: 173.4 MB / 201.5 MB, free: 9.191 MB / 186.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.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.593e-06/1.593e-06, allocations: 0 / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.592e-05/2.751e-05, allocations: 6.312 kB / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00454/0.004568, allocations: 2.057 MB / 270.5 MB, free: 4.148 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003382/0.00795, allocations: 0.5762 MB / 271.1 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.008051, allocations: 3.938 kB / 271.1 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.008158, allocations: 19.8 kB / 271.1 MB, free: 3.543 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003182/0.01134, allocations: 35.66 kB / 271.1 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.01158, allocations: 71.72 kB / 271.2 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001619/0.01174, allocations: 135.4 kB / 271.3 MB, free: 3.305 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.01185, allocations: 42.77 kB / 271.4 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.01196, allocations: 75.86 kB / 271.5 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.542e-05/0.01203, allocations: 43.81 kB / 271.5 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.01206, allocations: 8 kB / 271.5 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.786e-05/0.01207, allocations: 12 kB / 271.5 MB, free: 3.121 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.034e-05/0.01212, allocations: 31.91 kB / 271.6 MB, free: 3.09 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.947e-05/0.01217, allocations: 43.84 kB / 271.6 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.01233, allocations: 107.5 kB / 271.7 MB, free: 2.941 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.604e-06/0.01234, allocations: 0 / 271.7 MB, free: 2.941 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.01234, allocations: 4 kB / 271.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.01234, allocations: 4 kB / 271.7 MB, free: 2.934 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.0004165/0.01276, allocations: 344.3 kB / 272 MB, free: 2.574 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.01279, allocations: 8.922 kB / 272.1 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.141e-05/0.01284, allocations: 20.92 kB / 272.1 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.01301, allocations: 165.4 kB / 272.2 MB, free: 2.359 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.01302, allocations: 8.375 kB / 272.2 MB, free: 2.352 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.01305, allocations: 16.38 kB / 272.3 MB, free: 2.336 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004094/0.01346, allocations: 219.8 kB / 272.5 MB, free: 2.094 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.01347, allocations: 192 / 272.5 MB, free: 2.094 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.01348, allocations: 8.375 kB / 272.5 MB, free: 2.086 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.01349, allocations: 7.875 kB / 272.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.256e-05/0.01354, allocations: 27.98 kB / 272.5 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003889/0.01393, allocations: 453.9 kB / 273 MB, free: 1.57 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003209/0.01714, allocations: 119.8 kB / 273.1 MB, free: 1.426 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.226e-05/0.01719, allocations: 38.66 kB / 273.1 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.01721, allocations: 4 kB / 273.1 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.01723, allocations: 42.5 kB / 273.2 MB, free: 1.324 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.01724, allocations: 0 / 273.2 MB, free: 1.324 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001945/0.01743, allocations: 97.53 kB / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.01749, allocations: 122.7 kB / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.133e-05/0.01758, allocations: 150.6 kB / 273.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.01759, allocations: 25.7 kB / 273.5 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.658e-05/0.01764, allocations: 120.7 kB / 273.7 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.01766, allocations: 19.8 kB / 273.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.01769, allocations: 33.69 kB / 273.7 MB, free: 0.707 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.721e-05/0.01777, allocations: 318.8 kB / 274 MB, free: 396 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.517e-05/0.01779, allocations: 11.98 kB / 274 MB, free: 384 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.096e-05/0.01783, allocations: 54.81 kB / 274.1 MB, free: 304 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.757e-05/0.0179, allocations: 86.7 kB / 274.2 MB, free: 192 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.01791, allocations: 0 / 274.2 MB, free: 192 kB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001066/0.01801, allocations: 89.47 kB / 274.3 MB, free: 96 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.01803, allocations: 4 kB / 274.3 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.01803, allocations: 4 kB / 274.3 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.01805, allocations: 0 / 274.3 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.483e-05/0.01813, allocations: 28.2 kB / 274.3 MB, free: 60 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.01814, allocations: 7.938 kB / 274.3 MB, free: 52 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.558e-05/0.01818, allocations: 7.953 kB / 274.3 MB, free: 44 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.01819, allocations: 7.938 kB / 274.3 MB, free: 36 kB / 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 8.021e-05/0.01827, allocations: 120.6 kB / 274.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.853e-05/0.01836, allocations: 73.61 kB / 274.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.81e-05/0.01841, allocations: 20.77 kB / 274.5 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.01841, allocations: 0 / 274.5 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.01841, allocations: 4 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.01842, allocations: 0 / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.01859, allocations: 101.8 kB / 274.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.01859, allocations: 4 kB / 274.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.0187, allocations: 27.98 kB / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.0187, allocations: 0 / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.01871, allocations: 7.938 kB / 274.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.01871, allocations: 0 / 274.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01871, allocations: 0 / 274.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.01886, allocations: 243.6 kB / 274.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.29e-05/0.0189, allocations: 27.83 kB / 274.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.01891, allocations: 0 / 274.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.01901, allocations: 16.02 kB / 275 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.646e-05/0.01904, allocations: 4.234 kB / 275 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.01905, allocations: 3.938 kB / 275 MB, free: 15.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.799e-05/0.01908, allocations: 46.28 kB / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01908, allocations: 0 / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002529/0.01934, allocations: 23.95 kB / 275 MB, free: 15.27 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 8.783e-05/0.01942, allocations: 84.41 kB / 275.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001015/0.01953, allocations: 61.08 kB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.01953, allocations: 7.938 kB / 275.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.079e-05/0.01955, allocations: 12.86 kB / 275.2 MB, free: 15.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.01989, allocations: 54.97 kB / 275.2 MB, free: 15.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006916/0.02058, allocations: 351 kB / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.901e-05/0.02064, allocations: 75.33 kB / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.629e-05/0.02068, allocations: 8.656 kB / 275.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.028e-05/0.02076, allocations: 71.36 kB / 275.7 MB, free: 14.49 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.02076, allocations: 0 / 275.7 MB, free: 14.49 MB / 266.7 MB Notification: Performance of Templates: time 0.00458/0.02534, allocations: 1.425 MB / 277.2 MB, free: 13.12 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","",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.568494241219014]