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.001819/0.001819, allocations: 99.86 kB / 20.96 MB, free: 3.461 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.002484/0.002484, allocations: 149.1 kB / 24.26 MB, free: 168 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.522/1.522, allocations: 173.4 MB / 200.8 MB, free: 9.309 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.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.913e-06/1.913e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.893e-05/3.085e-05, allocations: 2.312 kB / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003618/0.003649, allocations: 2.004 MB / 269.3 MB, free: 4.746 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.004711, allocations: 0.5219 MB / 269.8 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.541e-05/0.004806, allocations: 4 kB / 269.8 MB, free: 4.215 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.004928, allocations: 15.8 kB / 269.8 MB, free: 4.199 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.005074, allocations: 35.66 kB / 269.9 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.005298, allocations: 59.8 kB / 269.9 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.005488, allocations: 127.5 kB / 270.1 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.005624, allocations: 37.58 kB / 270.1 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.00577, allocations: 75.86 kB / 270.2 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.301e-05/0.005863, allocations: 43.81 kB / 270.2 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.00589, allocations: 15.94 kB / 270.2 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.435e-05/0.005914, allocations: 12 kB / 270.2 MB, free: 3.793 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.433e-05/0.005949, allocations: 23.91 kB / 270.3 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.163e-05/0.00601, allocations: 39.91 kB / 270.3 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.006217, allocations: 127.6 kB / 270.4 MB, free: 3.605 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.00622, allocations: 0 / 270.4 MB, free: 3.605 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.006221, allocations: 0 / 270.4 MB, free: 3.605 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.006226, allocations: 0 / 270.4 MB, free: 3.605 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.0006762/0.006902, allocations: 463.7 kB / 270.9 MB, free: 3.117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.006941, allocations: 8.922 kB / 270.9 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.056e-05/0.007011, allocations: 28.78 kB / 270.9 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.00724, allocations: 148.4 kB / 271.1 MB, free: 2.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.007261, allocations: 16.36 kB / 271.1 MB, free: 2.895 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.389e-05/0.007295, allocations: 20.31 kB / 271.1 MB, free: 2.875 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005129/0.007808, allocations: 256.1 kB / 271.3 MB, free: 2.594 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.007828, allocations: 16.16 kB / 271.4 MB, free: 2.578 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.007843, allocations: 4.375 kB / 271.4 MB, free: 2.574 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.007853, allocations: 7.938 kB / 271.4 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002115/0.008065, allocations: 79.83 kB / 271.4 MB, free: 2.488 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007537/0.008818, allocations: 0.6446 MB / 272.1 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003584/0.009177, allocations: 169.1 kB / 272.3 MB, free: 1.586 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.009324, allocations: 75.12 kB / 272.3 MB, free: 1.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.009354, allocations: 8.125 kB / 272.3 MB, free: 1.492 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.009388, allocations: 41.33 kB / 272.4 MB, free: 1.441 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.009389, allocations: 0 / 272.4 MB, free: 1.441 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004743/0.009863, allocations: 173.6 kB / 272.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.218e-05/0.009956, allocations: 110.8 kB / 272.7 MB, free: 1.133 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.01012, allocations: 201.4 kB / 272.9 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.01014, allocations: 29.7 kB / 272.9 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.01025, allocations: 162.8 kB / 273 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.947e-05/0.01028, allocations: 23.8 kB / 273.1 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.01034, allocations: 35.36 kB / 273.1 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0004685/0.01081, allocations: 0.4922 MB / 273.6 MB, free: 156 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.596e-05/0.01088, allocations: 23.98 kB / 273.6 MB, free: 132 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.01104, allocations: 105.4 kB / 273.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002094/0.01125, allocations: 121.5 kB / 273.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.01125, allocations: 0 / 273.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002757/0.01153, allocations: 133.5 kB / 274 MB, free: 15.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.01155, allocations: 8 kB / 274 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01155, allocations: 0 / 274 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.01157, allocations: 4 kB / 274 MB, free: 15.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.01167, allocations: 27.92 kB / 274 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.01168, allocations: 4 kB / 274 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.939e-05/0.01175, allocations: 15.89 kB / 274 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.01176, allocations: 7.984 kB / 274 MB, free: 15.64 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.0001496/0.01191, allocations: 176.7 kB / 274.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.01208, allocations: 89.58 kB / 274.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.818e-05/0.01215, allocations: 16.78 kB / 274.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.01215, allocations: 4 kB / 274.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.01216, allocations: 240 / 274.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.01216, allocations: 3.984 kB / 274.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002692/0.01243, allocations: 160.4 kB / 274.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.01243, allocations: 7.922 kB / 274.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.01259, allocations: 31.98 kB / 274.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.01259, allocations: 0 / 274.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.01261, allocations: 8 kB / 274.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01261, allocations: 4 kB / 274.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.01262, allocations: 0 / 274.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005836/0.0132, allocations: 470.5 kB / 275 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.01322, allocations: 15.91 kB / 275 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.01324, allocations: 4 kB / 275 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.01337, allocations: 8 kB / 275 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.349e-05/0.01342, allocations: 7.984 kB / 275 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-06/0.01343, allocations: 4 kB / 275 MB, free: 14.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.576e-05/0.01352, allocations: 143.2 kB / 275.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01352, allocations: 4.031 kB / 275.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002829/0.0138, allocations: 31.88 kB / 275.2 MB, free: 14.39 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.0001176/0.01392, allocations: 103.2 kB / 275.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002574/0.01418, allocations: 95.53 kB / 275.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01418, allocations: 0 / 275.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.489e-05/0.01427, allocations: 28.11 kB / 275.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000476/0.01474, allocations: 66.59 kB / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006713/0.01541, allocations: 358.7 kB / 275.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.01553, allocations: 101.3 kB / 275.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.995e-05/0.01557, allocations: 12.97 kB / 275.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.178e-05/0.01561, allocations: 12.5 kB / 276 MB, free: 13.56 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01561, allocations: 0 / 276 MB, free: 13.56 MB / 266.7 MB Notification: Performance of Templates: time 0.004478/0.02009, allocations: 1.211 MB / 277.2 MB, free: 12.38 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.395200684084557]