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.0009851/0.0009851, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0009566/0.0009566, allocations: 142.3 kB / 24.97 MB, free: 8.324 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.9527/0.9527, allocations: 173.4 MB / 201.5 MB, free: 9.32 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.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 1.453e-06/1.453e-06, allocations: 0 / 268 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.623e-05/1.768e-05, allocations: 2.312 kB / 268 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002166/0.002184, allocations: 2.039 MB / 270.1 MB, free: 4.691 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000638/0.002822, allocations: 0.5219 MB / 270.6 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.075e-05/0.002902, allocations: 7.938 kB / 270.6 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.258e-05/0.002995, allocations: 15.8 kB / 270.6 MB, free: 4.141 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.003111, allocations: 39.7 kB / 270.7 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001648/0.003276, allocations: 55.81 kB / 270.7 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.003414, allocations: 123.5 kB / 270.8 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.003532, allocations: 37.61 kB / 270.9 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.797e-05/0.00362, allocations: 75.8 kB / 271 MB, free: 3.809 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.414e-05/0.003694, allocations: 39.89 kB / 271 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.003718, allocations: 8 kB / 271 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.261e-05/0.00373, allocations: 12 kB / 271 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.73e-05/0.003758, allocations: 31.89 kB / 271 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.226e-05/0.0038, allocations: 39.84 kB / 271.1 MB, free: 3.68 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.003937, allocations: 95.64 kB / 271.2 MB, free: 3.586 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.003939, allocations: 4 kB / 271.2 MB, free: 3.582 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.00394, allocations: 0 / 271.2 MB, free: 3.582 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.356e-06/0.003943, allocations: 3.938 kB / 271.2 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0003976/0.004341, allocations: 452.1 kB / 271.6 MB, free: 3.102 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.004372, allocations: 8.922 kB / 271.6 MB, free: 3.094 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.956e-05/0.004421, allocations: 24.84 kB / 271.7 MB, free: 3.07 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.004571, allocations: 148.4 kB / 271.8 MB, free: 2.898 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.004581, allocations: 8.375 kB / 271.8 MB, free: 2.891 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.048e-05/0.004621, allocations: 20.38 kB / 271.8 MB, free: 2.871 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000309/0.00493, allocations: 240.1 kB / 272.1 MB, free: 2.605 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.00494, allocations: 4.188 kB / 272.1 MB, free: 2.602 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.004952, allocations: 4.375 kB / 272.1 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.00496, allocations: 7.938 kB / 272.1 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.415e-05/0.005034, allocations: 43.84 kB / 272.1 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004223/0.005456, allocations: 0.6445 MB / 272.8 MB, free: 1.848 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.005658, allocations: 141.3 kB / 272.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.895e-05/0.005717, allocations: 55.14 kB / 273 MB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.005736, allocations: 4 kB / 273 MB, free: 1.602 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.005753, allocations: 33.39 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.005754, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000217/0.005971, allocations: 125.5 kB / 273.1 MB, free: 1.43 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.006023, allocations: 114.8 kB / 273.2 MB, free: 1.293 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.238e-05/0.006105, allocations: 193.5 kB / 273.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.006117, allocations: 29.7 kB / 273.5 MB, free: 1.055 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.426e-05/0.006171, allocations: 158.8 kB / 273.6 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.006188, allocations: 27.78 kB / 273.6 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.006218, allocations: 27.38 kB / 273.7 MB, free: 0.832 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.699e-05/0.006315, allocations: 0.4961 MB / 274.2 MB, free: 332 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.475e-05/0.00634, allocations: 11.98 kB / 274.2 MB, free: 320 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.002e-05/0.00639, allocations: 85.38 kB / 274.3 MB, free: 200 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.868e-05/0.006469, allocations: 105.4 kB / 274.4 MB, free: 60 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.006471, allocations: 4 kB / 274.4 MB, free: 56 kB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003616/0.006832, allocations: 101.7 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.006844, allocations: 8 kB / 274.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.00685, allocations: 4.203 kB / 274.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.00686, allocations: 8 kB / 274.5 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.312e-05/0.006923, allocations: 23.98 kB / 274.5 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.00693, allocations: 7.938 kB / 274.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.464e-05/0.006964, allocations: 11.89 kB / 274.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.006972, allocations: 11.98 kB / 274.5 MB, free: 15.88 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 6.277e-05/0.007035, allocations: 164.5 kB / 274.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.939e-05/0.007114, allocations: 77.58 kB / 274.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.131e-05/0.007156, allocations: 16.78 kB / 274.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.007158, allocations: 4 kB / 274.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.007162, allocations: 4 kB / 274.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.007165, allocations: 3.984 kB / 274.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.007305, allocations: 152.5 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.007305, allocations: 0 / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.766e-05/0.007393, allocations: 35.92 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.007395, allocations: 0 / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.007411, allocations: 8 kB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.007412, allocations: 0 / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.007413, allocations: 0 / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002342/0.007647, allocations: 409.6 kB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.328e-05/0.00766, allocations: 19.92 kB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.007677, allocations: 8 kB / 275.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.047e-05/0.007737, allocations: 7.938 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.042e-05/0.007768, allocations: 7.984 kB / 275.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.007772, allocations: 4 kB / 275.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.185e-05/0.007814, allocations: 139.2 kB / 275.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007814, allocations: 0 / 275.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001797/0.007994, allocations: 31.88 kB / 275.6 MB, free: 14.73 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 6.117e-05/0.008055, allocations: 99.25 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00011/0.008165, allocations: 71.53 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.008167, allocations: 3.938 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.449e-05/0.008191, allocations: 23.61 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/0.008492, allocations: 39.11 kB / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000574/0.009066, allocations: 358.2 kB / 276.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.605e-05/0.009112, allocations: 87.27 kB / 276.3 MB, free: 13.99 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.327e-05/0.009135, allocations: 4.984 kB / 276.3 MB, free: 13.99 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.864e-05/0.009164, allocations: 12.5 kB / 276.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.009164, allocations: 0 / 276.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of Templates: time 0.002612/0.01178, allocations: 1.203 MB / 277.5 MB, free: 12.79 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] 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","",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.7345011129509658]