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.001696/0.001696, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.002264/0.002264, allocations: 149.4 kB / 24.25 MB, free: 184 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.447/1.447, allocations: 173.4 MB / 200.8 MB, free: 9.301 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.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 1.333e-06/1.333e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.803e-05, allocations: 2.312 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00402/0.004048, allocations: 2.026 MB / 269.3 MB, free: 4.691 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.005106, allocations: 494.6 kB / 269.8 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.005211, allocations: 4 kB / 269.8 MB, free: 4.199 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.005341, allocations: 19.8 kB / 269.8 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.129e-05/0.005422, allocations: 23.73 kB / 269.9 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00028/0.005702, allocations: 67.72 kB / 269.9 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.005911, allocations: 123.5 kB / 270 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.006063, allocations: 45.97 kB / 270.1 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.006203, allocations: 71.8 kB / 270.2 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.343e-05/0.006287, allocations: 39.89 kB / 270.2 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.249e-05/0.006319, allocations: 16 kB / 270.2 MB, free: 3.789 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.159e-05/0.006341, allocations: 8 kB / 270.2 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.285e-05/0.006374, allocations: 23.92 kB / 270.2 MB, free: 3.758 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.657e-05/0.00644, allocations: 43.84 kB / 270.3 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.006664, allocations: 135.5 kB / 270.4 MB, free: 3.582 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.006668, allocations: 0 / 270.4 MB, free: 3.582 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.006669, allocations: 3.938 kB / 270.4 MB, free: 3.578 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.006673, allocations: 0 / 270.4 MB, free: 3.578 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006676/0.007341, allocations: 357.7 kB / 270.8 MB, free: 3.199 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.007379, allocations: 16.92 kB / 270.8 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.931e-05/0.007448, allocations: 20.89 kB / 270.8 MB, free: 3.164 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.00774, allocations: 157.5 kB / 271 MB, free: 2.984 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.007761, allocations: 12.38 kB / 271 MB, free: 2.973 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.219e-05/0.007804, allocations: 12.38 kB / 271 MB, free: 2.961 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005714/0.008375, allocations: 227.2 kB / 271.2 MB, free: 2.715 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.008391, allocations: 4.141 kB / 271.2 MB, free: 2.711 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.00841, allocations: 4.375 kB / 271.2 MB, free: 2.707 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.00842, allocations: 7.938 kB / 271.2 MB, free: 2.699 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002722/0.008692, allocations: 83.86 kB / 271.3 MB, free: 2.617 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007626/0.009455, allocations: 0.4888 MB / 271.8 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003967/0.009851, allocations: 139.9 kB / 271.9 MB, free: 1.918 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.01004, allocations: 66.64 kB / 272 MB, free: 1.844 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.01007, allocations: 4 kB / 272 MB, free: 1.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/0.01011, allocations: 42.48 kB / 272 MB, free: 1.789 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.01011, allocations: 0 / 272 MB, free: 1.789 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005868/0.0107, allocations: 181.4 kB / 272.2 MB, free: 1.605 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.0108, allocations: 110.8 kB / 272.3 MB, free: 1.473 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.01095, allocations: 138.4 kB / 272.5 MB, free: 1.328 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.01097, allocations: 25.7 kB / 272.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.01109, allocations: 127.8 kB / 272.6 MB, free: 1.168 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.27e-05/0.01112, allocations: 27.83 kB / 272.6 MB, free: 1.141 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/0.01117, allocations: 25.66 kB / 272.7 MB, free: 1.109 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.01135, allocations: 322.8 kB / 273 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.01147, allocations: 31.97 kB / 273 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.01163, allocations: 87.64 kB / 273.1 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.0119, allocations: 122.9 kB / 273.2 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.01191, allocations: 0 / 273.2 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003492/0.01226, allocations: 141.4 kB / 273.4 MB, free: 360 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.01227, allocations: 8 kB / 273.4 MB, free: 352 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.01228, allocations: 0 / 273.4 MB, free: 352 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.0123, allocations: 4 kB / 273.4 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.01243, allocations: 27.92 kB / 273.4 MB, free: 320 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.01244, allocations: 4 kB / 273.4 MB, free: 316 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.002e-05/0.01253, allocations: 19.81 kB / 273.4 MB, free: 296 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.01254, allocations: 12.22 kB / 273.4 MB, free: 284 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 0.0001267/0.01267, allocations: 121.8 kB / 273.6 MB, free: 152 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.01286, allocations: 101.9 kB / 273.7 MB, free: 44 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.793e-05/0.01292, allocations: 16.77 kB / 273.7 MB, free: 28 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.01293, allocations: 4 kB / 273.7 MB, free: 24 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.01294, allocations: 0 / 273.7 MB, free: 24 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.01294, allocations: 0 / 273.7 MB, free: 24 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002742/0.01321, allocations: 145.1 kB / 273.8 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.01321, allocations: 0 / 273.8 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002307/0.01344, allocations: 47.95 kB / 273.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.01345, allocations: 8 kB / 273.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.01347, allocations: 4 kB / 273.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.01347, allocations: 0 / 273.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.01347, allocations: 4 kB / 273.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006768/0.01415, allocations: 390.9 kB / 274.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.462e-05/0.01417, allocations: 11.89 kB / 274.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.0142, allocations: 0 / 274.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.01435, allocations: 16.05 kB / 274.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.01439, allocations: 4 kB / 274.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.0144, allocations: 4 kB / 274.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.284e-05/0.0145, allocations: 114.5 kB / 274.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0145, allocations: 0 / 274.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003243/0.01482, allocations: 31.89 kB / 274.4 MB, free: 15.21 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.0001349/0.01496, allocations: 103.2 kB / 274.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003197/0.01528, allocations: 96.12 kB / 274.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.01528, allocations: 3.938 kB / 274.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.01538, allocations: 27.97 kB / 274.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005614/0.01594, allocations: 65.84 kB / 274.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.01711, allocations: 367.6 kB / 275.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.01725, allocations: 102.3 kB / 275.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.121e-05/0.0173, allocations: 12.95 kB / 275.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.01734, allocations: 16.5 kB / 275.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of SimCode: time 8.71e-07/0.01735, allocations: 0 / 275.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of Templates: time 0.00476/0.02211, allocations: 1.325 MB / 276.5 MB, free: 13.1 MB / 266.7 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.326476753922179]