Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001313/0.001313, allocations: 80.95 kB / 20.68 MB, free: 1.023 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.00138/0.00138, allocations: 146.5 kB / 23.94 MB, free: 4.156 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.467/1.467, allocations: 173.3 MB / 200.4 MB, free: 12.86 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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 1.406 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.749e-05/2.976e-05, allocations: 6.219 kB / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003/0.00303, allocations: 2.012 MB / 320.9 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008506/0.00388, allocations: 486.5 kB / 321.4 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.003988, allocations: 2.719 kB / 321.4 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.004129, allocations: 21.08 kB / 321.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.876e-05/0.004208, allocations: 30.19 kB / 321.4 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002762/0.004484, allocations: 58.22 kB / 321.5 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001782/0.004662, allocations: 130.1 kB / 321.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.004804, allocations: 49.14 kB / 321.7 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.004925, allocations: 70.98 kB / 321.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.666e-05/0.005012, allocations: 41.25 kB / 321.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.137e-05/0.005043, allocations: 10.22 kB / 321.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.505e-05/0.005068, allocations: 9.906 kB / 321.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.22e-05/0.005101, allocations: 29.36 kB / 321.8 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.874e-05/0.005149, allocations: 40.81 kB / 321.9 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002005/0.00535, allocations: 134.9 kB / 322 MB, free: 1.574 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.005353, allocations: 4 kB / 322 MB, free: 1.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005354, allocations: 0 / 322 MB, free: 1.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.005359, allocations: 3.938 kB / 322 MB, free: 1.566 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005407/0.0059, allocations: 361.1 kB / 322.4 MB, free: 1.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.005935, allocations: 12.17 kB / 322.4 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.41e-05/0.005979, allocations: 16 kB / 322.4 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.006187, allocations: 154 kB / 322.5 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.006203, allocations: 17.02 kB / 322.6 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.202e-05/0.006235, allocations: 13.03 kB / 322.6 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004491/0.006684, allocations: 224 kB / 322.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.006699, allocations: 5.328 kB / 322.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.006714, allocations: 9.375 kB / 322.8 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.006721, allocations: 7.531 kB / 322.8 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.006965, allocations: 85.23 kB / 322.9 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000479/0.007444, allocations: 0.4929 MB / 323.4 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.007762, allocations: 138.1 kB / 323.5 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.007929, allocations: 69.02 kB / 323.6 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.007957, allocations: 3.734 kB / 323.6 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.579e-05/0.007973, allocations: 36.75 kB / 323.6 MB, free: 256 kB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.007974, allocations: 5.094 kB / 323.6 MB, free: 252 kB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005328/0.008507, allocations: 179 kB / 323.8 MB, free: 172 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.008564, allocations: 112.3 kB / 323.9 MB, free: 40 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.0087, allocations: 142.5 kB / 324.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.008723, allocations: 26.41 kB / 324.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.39e-05/0.008806, allocations: 114.2 kB / 324.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.008831, allocations: 21.69 kB / 324.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.00888, allocations: 27.64 kB / 324.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.009025, allocations: 331.9 kB / 324.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.009135, allocations: 27.67 kB / 324.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.009294, allocations: 90.08 kB / 324.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002544/0.009548, allocations: 112.8 kB / 324.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.009551, allocations: 1.531 kB / 324.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003226/0.009874, allocations: 136.4 kB / 324.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.009891, allocations: 9.812 kB / 324.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.009898, allocations: 6.031 kB / 324.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.009915, allocations: 4.141 kB / 324.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.01004, allocations: 30.42 kB / 325 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.01005, allocations: 2.547 kB / 325 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.38e-05/0.01014, allocations: 25.02 kB / 325 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.01015, allocations: 4.328 kB / 325 MB, free: 15.15 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.0001149/0.01027, allocations: 121.8 kB / 325.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.01044, allocations: 88.61 kB / 325.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.0105, allocations: 16.94 kB / 325.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.0105, allocations: 6.75 kB / 325.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.01051, allocations: 1.375 kB / 325.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.01051, allocations: 0.7031 kB / 325.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.01076, allocations: 148.4 kB / 325.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.01077, allocations: 1.375 kB / 325.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/0.01099, allocations: 45.89 kB / 325.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.01099, allocations: 1.375 kB / 325.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.01101, allocations: 5.984 kB / 325.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.01102, allocations: 2.125 kB / 325.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.01102, allocations: 1.375 kB / 325.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006181/0.01164, allocations: 382.6 kB / 325.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.754e-05/0.01166, allocations: 18.23 kB / 325.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.01169, allocations: 6.031 kB / 325.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.01183, allocations: 6.656 kB / 325.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.708e-05/0.01188, allocations: 13.31 kB / 325.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.01189, allocations: 4.828 kB / 325.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.897e-05/0.01197, allocations: 103.5 kB / 326 MB, free: 14.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01197, allocations: 8 kB / 326 MB, free: 14.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.01229, allocations: 27.14 kB / 326 MB, free: 14.41 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.0001403/0.01243, allocations: 102.4 kB / 326.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003564/0.01278, allocations: 97.8 kB / 326.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.01278, allocations: 0 / 326.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.0129, allocations: 34.64 kB / 326.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005319/0.01343, allocations: 66.86 kB / 326.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008422/0.01427, allocations: 350.3 kB / 326.6 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.01439, allocations: 100.7 kB / 326.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.561e-05/0.01443, allocations: 11.98 kB / 326.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.264e-05/0.01448, allocations: 15.5 kB / 326.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.01448, allocations: 0 / 326.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of Templates: time 0.004873/0.01935, allocations: 1.334 MB / 328.1 MB, free: 13.76 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.22599283978343]