Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001877/0.001877, allocations: 92.31 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002286/0.002286, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.5/1.5, allocations: 177.2 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.344e-05/3.547e-05, allocations: 2.312 kB / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004085/0.00412, allocations: 2.017 MB / 274.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.005852, allocations: 0.5686 MB / 274.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.006046, allocations: 7.938 kB / 274.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.0062, allocations: 15.8 kB / 274.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.00645, allocations: 43.59 kB / 274.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003718/0.006822, allocations: 71.72 kB / 275 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002612/0.007083, allocations: 127.5 kB / 275.1 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.007252, allocations: 49.31 kB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.007448, allocations: 79.8 kB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.742e-05/0.007545, allocations: 39.88 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.352e-05/0.007589, allocations: 12 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.363e-05/0.007612, allocations: 8 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.832e-05/0.007691, allocations: 35.84 kB / 275.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.317e-05/0.007764, allocations: 39.86 kB / 275.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.008053, allocations: 151.4 kB / 275.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.008056, allocations: 0 / 275.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.008058, allocations: 0 / 275.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.008063, allocations: 0 / 275.5 MB, free: 14.57 MB / 266.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.0007867/0.00885, allocations: 377.7 kB / 275.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.008892, allocations: 12.03 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.594e-05/0.008978, allocations: 28.83 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.009344, allocations: 165.4 kB / 276.1 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.009365, allocations: 8.375 kB / 276.1 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.051e-05/0.009406, allocations: 12.38 kB / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006087/0.01001, allocations: 251.1 kB / 276.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.01003, allocations: 4.188 kB / 276.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.01005, allocations: 4.375 kB / 276.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.01006, allocations: 7.938 kB / 276.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000281/0.01034, allocations: 83.81 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007431/0.01109, allocations: 0.5005 MB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004155/0.0115, allocations: 139.9 kB / 277.1 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.01168, allocations: 74.61 kB / 277.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.01171, allocations: 7.938 kB / 277.2 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.01175, allocations: 38.5 kB / 277.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.01175, allocations: 0 / 277.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006029/0.01236, allocations: 193.4 kB / 277.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.01247, allocations: 114.8 kB / 277.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.01265, allocations: 160.9 kB / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.01268, allocations: 29.7 kB / 277.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.227e-05/0.01277, allocations: 112.6 kB / 277.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.156e-05/0.0128, allocations: 23.8 kB / 277.9 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.765e-05/0.01286, allocations: 29.7 kB / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.01304, allocations: 326.8 kB / 278.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.01316, allocations: 28.11 kB / 278.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001494/0.01331, allocations: 78.78 kB / 278.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.01358, allocations: 114.9 kB / 278.4 MB, free: 11.42 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01358, allocations: 4 kB / 278.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003267/0.01391, allocations: 137.4 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.01393, allocations: 8 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.01394, allocations: 0 / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.01396, allocations: 4 kB / 278.6 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.01409, allocations: 40.12 kB / 278.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.0141, allocations: 4 kB / 278.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.167e-05/0.01419, allocations: 15.89 kB / 278.6 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.0142, allocations: 8 kB / 278.6 MB, free: 11.2 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.0001434/0.01435, allocations: 133.7 kB / 278.8 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.01453, allocations: 93.59 kB / 278.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.123e-05/0.01461, allocations: 20.77 kB / 278.9 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.01461, allocations: 7.938 kB / 278.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.01462, allocations: 0 / 278.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.01462, allocations: 8 kB / 278.9 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002641/0.01489, allocations: 145.2 kB / 279 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.01489, allocations: 3.984 kB / 279 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.01507, allocations: 35.98 kB / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.01508, allocations: 0 / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.01509, allocations: 4 kB / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.01509, allocations: 0 / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.0151, allocations: 0 / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006385/0.01573, allocations: 395.3 kB / 279.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.194e-05/0.01581, allocations: 27.92 kB / 279.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.01583, allocations: 4 kB / 279.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.01597, allocations: 7.984 kB / 279.5 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.007e-05/0.01602, allocations: 7.984 kB / 279.5 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.01604, allocations: 8 kB / 279.5 MB, free: 10.25 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000113/0.01615, allocations: 116.8 kB / 279.6 MB, free: 10.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01615, allocations: 0 / 279.6 MB, free: 10.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003278/0.01648, allocations: 31.83 kB / 279.7 MB, free: 10.1 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.0001402/0.01662, allocations: 111.2 kB / 279.8 MB, free: 9.984 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003199/0.01694, allocations: 87.88 kB / 279.9 MB, free: 9.898 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01694, allocations: 0 / 279.9 MB, free: 9.898 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.01707, allocations: 31.91 kB / 279.9 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005551/0.01762, allocations: 60.3 kB / 280 MB, free: 9.809 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008323/0.01845, allocations: 384.3 kB / 280.3 MB, free: 9.398 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.01859, allocations: 106.3 kB / 280.4 MB, free: 9.273 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.003e-05/0.01864, allocations: 12.62 kB / 280.4 MB, free: 9.262 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.339e-05/0.01869, allocations: 12.5 kB / 280.5 MB, free: 9.25 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01869, allocations: 4 kB / 280.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of Templates: time 0.005352/0.02404, allocations: 1.381 MB / 281.8 MB, free: 7.926 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.377825113944709]