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.001068/0.001068, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001519/0.002586, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006537/0.0006537, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009023/0.001556, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.9178/0.9178, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1646/1.082, allocations: 52.49 MB / 238.5 MB, free: 7.621 MB / 234.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.974e-06/1.974e-06, allocations: 0 / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.343e-05/2.541e-05, allocations: 2.312 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003623/0.003648, allocations: 2.115 MB / 241.8 MB, free: 4.262 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009454/0.004594, allocations: 0.5666 MB / 242.4 MB, free: 3.691 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.004699, allocations: 4.594 kB / 242.4 MB, free: 3.688 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.097e-05/0.00479, allocations: 19.8 kB / 242.4 MB, free: 3.668 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.004926, allocations: 38.19 kB / 242.5 MB, free: 3.633 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.005175, allocations: 71.72 kB / 242.5 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001941/0.005369, allocations: 131.5 kB / 242.7 MB, free: 3.434 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.005493, allocations: 38.78 kB / 242.7 MB, free: 3.391 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.005645, allocations: 91.72 kB / 242.8 MB, free: 3.301 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.282e-05/0.005738, allocations: 45.28 kB / 242.8 MB, free: 3.258 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.005772, allocations: 12 kB / 242.8 MB, free: 3.246 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.325e-05/0.005795, allocations: 8 kB / 242.9 MB, free: 3.238 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.653e-05/0.005851, allocations: 27.94 kB / 242.9 MB, free: 3.211 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.944e-05/0.005901, allocations: 36.69 kB / 242.9 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.006084, allocations: 91.59 kB / 243 MB, free: 3.086 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.006092, allocations: 1.094 kB / 243 MB, free: 3.086 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.006093, allocations: 0 / 243 MB, free: 3.086 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.006104, allocations: 0 / 243 MB, free: 3.086 MB / 234.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.0005354/0.00664, allocations: 383 kB / 243.4 MB, free: 2.691 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.006672, allocations: 15.97 kB / 243.4 MB, free: 2.676 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.902e-05/0.006721, allocations: 20.92 kB / 243.4 MB, free: 2.656 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002033/0.006925, allocations: 157.3 kB / 243.6 MB, free: 2.477 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.006939, allocations: 8.375 kB / 243.6 MB, free: 2.469 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.166e-05/0.00697, allocations: 12.38 kB / 243.6 MB, free: 2.457 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003445/0.007315, allocations: 224.5 kB / 243.8 MB, free: 2.215 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.007329, allocations: 7.141 kB / 243.8 MB, free: 2.211 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.007342, allocations: 4.375 kB / 243.8 MB, free: 2.207 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.007352, allocations: 7.938 kB / 243.8 MB, free: 2.199 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.144e-05/0.007424, allocations: 31.92 kB / 243.9 MB, free: 2.168 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004734/0.007897, allocations: 462 kB / 244.3 MB, free: 1.676 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/0.008119, allocations: 103.7 kB / 244.4 MB, free: 1.547 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.881e-05/0.008178, allocations: 47.61 kB / 244.5 MB, free: 1.492 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.0082, allocations: 8.125 kB / 244.5 MB, free: 1.484 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.008226, allocations: 38.55 kB / 244.5 MB, free: 1.438 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 2.024e-06/0.008229, allocations: 0.9062 kB / 244.5 MB, free: 1.438 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002234/0.008452, allocations: 99.31 kB / 244.6 MB, free: 1.336 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.008512, allocations: 111.2 kB / 244.7 MB, free: 1.203 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.008617, allocations: 153.6 kB / 244.9 MB, free: 1.043 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.008633, allocations: 29.7 kB / 244.9 MB, free: 1.008 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.496e-05/0.008687, allocations: 112.6 kB / 245 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.008713, allocations: 28.42 kB / 245 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-05/0.008756, allocations: 29.67 kB / 245.1 MB, free: 0.832 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.051e-05/0.008847, allocations: 327.4 kB / 245.4 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.397e-05/0.008871, allocations: 9.969 kB / 245.4 MB, free: 0.4961 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-05/0.008921, allocations: 62.73 kB / 245.5 MB, free: 420 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.202e-05/0.009013, allocations: 84.23 kB / 245.5 MB, free: 312 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.009016, allocations: 4 kB / 245.5 MB, free: 308 kB / 234.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001273/0.009144, allocations: 83.23 kB / 245.6 MB, free: 220 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.009157, allocations: 5.688 kB / 245.6 MB, free: 216 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.009164, allocations: 4 kB / 245.6 MB, free: 212 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.009177, allocations: 4 kB / 245.6 MB, free: 208 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.009331, allocations: 31.91 kB / 245.7 MB, free: 176 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.009335, allocations: 4.5 kB / 245.7 MB, free: 172 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.281e-05/0.009398, allocations: 16.7 kB / 245.7 MB, free: 156 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.009407, allocations: 4 kB / 245.7 MB, free: 152 kB / 234.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 7.603e-05/0.009483, allocations: 118.3 kB / 245.8 MB, free: 24 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.00961, allocations: 69.61 kB / 245.9 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.009657, allocations: 20.7 kB / 245.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.009661, allocations: 4.344 kB / 245.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.009663, allocations: 4 kB / 245.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.009667, allocations: 0 / 245.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.00986, allocations: 101.7 kB / 246 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.009862, allocations: 4 kB / 246 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.01003, allocations: 35.92 kB / 246 MB, free: 15.77 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.093e-05/0.01008, allocations: 28.12 kB / 246.1 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.01009, allocations: 0 / 246.1 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.0101, allocations: 0 / 246.1 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.0101, allocations: 4 kB / 246.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.0101, allocations: 0 / 246.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.01028, allocations: 247.5 kB / 246.3 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.0103, allocations: 7.984 kB / 246.3 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.01042, allocations: 4 kB / 246.3 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.066e-05/0.01045, allocations: 4 kB / 246.3 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.699e-06/0.01046, allocations: 7.984 kB / 246.3 MB, free: 15.45 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.252e-05/0.0105, allocations: 37.69 kB / 246.4 MB, free: 15.41 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0105, allocations: 0 / 246.4 MB, free: 15.41 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002736/0.01078, allocations: 31.89 kB / 246.4 MB, free: 15.38 MB / 250.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.836e-05/0.01087, allocations: 88.3 kB / 246.5 MB, free: 15.29 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.01099, allocations: 60.8 kB / 246.5 MB, free: 15.22 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.01099, allocations: 3.938 kB / 246.6 MB, free: 15.22 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.72e-05/0.01103, allocations: 24.8 kB / 246.6 MB, free: 15.19 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004638/0.01149, allocations: 247.1 kB / 246.8 MB, free: 14.91 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/0.01357, allocations: 335.5 kB / 247.1 MB, free: 14.54 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.25e-05/0.01364, allocations: 75.33 kB / 247.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.231e-05/0.01368, allocations: 4.656 kB / 247.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.671e-05/0.01377, allocations: 67.36 kB / 247.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01378, allocations: 0 / 247.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of Templates: time 0.004219/0.01799, allocations: 1.444 MB / 248.7 MB, free: 13.01 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.395359706133604]