Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002365/0.002365, allocations: 103.5 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.00204, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.628/1.628, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.315e-06/2.315e-06, allocations: 0 / 272.2 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.946e-05/4.178e-05, allocations: 5.266 kB / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004412/0.004454, allocations: 2.031 MB / 274.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.005857, allocations: 0.5103 MB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.006038, allocations: 7.938 kB / 274.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.006186, allocations: 11.86 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.006303, allocations: 31.72 kB / 274.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.006684, allocations: 63.73 kB / 274.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002555/0.00694, allocations: 115.6 kB / 274.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.007112, allocations: 49.52 kB / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.007289, allocations: 71.86 kB / 275.1 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.007396, allocations: 39.89 kB / 275.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.754e-05/0.007433, allocations: 12 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.706e-05/0.00746, allocations: 12 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.102e-05/0.007502, allocations: 19.92 kB / 275.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.147e-05/0.007573, allocations: 47.78 kB / 275.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.007857, allocations: 123.6 kB / 275.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.007861, allocations: 0 / 275.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.007863, allocations: 0 / 275.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.007873, allocations: 0 / 275.3 MB, free: 14.69 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007593/0.008632, allocations: 451.8 kB / 275.7 MB, free: 14.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.008674, allocations: 19.92 kB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.327e-05/0.008757, allocations: 24.84 kB / 275.8 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.00904, allocations: 152.4 kB / 275.9 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.351e-05/0.009063, allocations: 16.38 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.009113, allocations: 16.33 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005578/0.009671, allocations: 248.1 kB / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.009692, allocations: 4.125 kB / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/0.009722, allocations: 8.375 kB / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.009734, allocations: 7.938 kB / 276.2 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002165/0.00995, allocations: 75.88 kB / 276.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008814/0.01083, allocations: 0.6446 MB / 276.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003269/0.01116, allocations: 161.4 kB / 277.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.01132, allocations: 83.06 kB / 277.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.01135, allocations: 4 kB / 277.2 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.01138, allocations: 37.39 kB / 277.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.01139, allocations: 0 / 277.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005002/0.01189, allocations: 157.8 kB / 277.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.01199, allocations: 110.9 kB / 277.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.01219, allocations: 200.6 kB / 277.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.01221, allocations: 29.7 kB / 277.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.01236, allocations: 162.8 kB / 277.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.941e-05/0.01241, allocations: 31.91 kB / 277.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.616e-05/0.01249, allocations: 31.38 kB / 277.9 MB, free: 11.78 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002785/0.01277, allocations: 0.4961 MB / 278.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.39e-05/0.01286, allocations: 27.92 kB / 278.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.013, allocations: 105.4 kB / 278.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.01328, allocations: 129.3 kB / 278.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.01328, allocations: 4 kB / 278.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002969/0.01358, allocations: 121.5 kB / 278.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.0136, allocations: 11.94 kB / 278.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.01361, allocations: 0 / 278.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.01363, allocations: 4.219 kB / 278.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.01376, allocations: 27.98 kB / 278.9 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.01377, allocations: 4 kB / 278.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.348e-05/0.01385, allocations: 15.83 kB / 278.9 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.01386, allocations: 8 kB / 278.9 MB, free: 10.75 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.0001478/0.01401, allocations: 168.5 kB / 279 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001718/0.01418, allocations: 93.52 kB / 279.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.165e-05/0.01423, allocations: 16.77 kB / 279.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.01424, allocations: 4 kB / 279.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.01424, allocations: 0 / 279.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.01424, allocations: 4 kB / 279.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002841/0.01453, allocations: 160.5 kB / 279.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.01453, allocations: 0 / 279.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.01471, allocations: 27.98 kB / 279.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.01471, allocations: 0 / 279.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.01473, allocations: 8 kB / 279.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.01474, allocations: 3.984 kB / 279.4 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.01474, allocations: 0 / 279.4 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000562/0.0153, allocations: 458.8 kB / 279.8 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.228e-05/0.01533, allocations: 23.86 kB / 279.8 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.01536, allocations: 8 kB / 279.8 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.01548, allocations: 8 kB / 279.8 MB, free: 9.711 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.01553, allocations: 3.984 kB / 279.8 MB, free: 9.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.01554, allocations: 4 kB / 279.9 MB, free: 9.703 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001029/0.01564, allocations: 143.2 kB / 280 MB, free: 9.562 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01564, allocations: 0 / 280 MB, free: 9.562 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003226/0.01596, allocations: 27.94 kB / 280 MB, free: 9.535 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 (14): * Single equations (assignments): 14 * 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.0001371/0.0161, allocations: 111.1 kB / 280.1 MB, free: 9.418 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002804/0.01638, allocations: 95.53 kB / 280.2 MB, free: 9.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.01638, allocations: 3.938 kB / 280.2 MB, free: 9.316 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.143e-05/0.01647, allocations: 31.67 kB / 280.3 MB, free: 9.281 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005059/0.01698, allocations: 50.97 kB / 280.3 MB, free: 9.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008112/0.01779, allocations: 343.1 kB / 280.6 MB, free: 8.859 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.01791, allocations: 105.2 kB / 280.7 MB, free: 8.734 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.028e-05/0.01796, allocations: 4.5 kB / 280.7 MB, free: 8.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.655e-05/0.018, allocations: 20.48 kB / 280.8 MB, free: 8.711 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.018, allocations: 0 / 280.8 MB, free: 8.711 MB / 266.7 MB Notification: Performance of Templates: time 0.005006/0.02301, allocations: 1.194 MB / 282 MB, free: 7.57 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.426348062930629]