Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009617/0.0009617, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 226.6 MB / 244.3 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008019/0.000802, allocations: 106 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002125/0.0002125, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2326, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001827/0.2345, allocations: 1.668 MB / 409.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007186/0.2352, allocations: 0.5068 MB / 409.7 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.2354, allocations: 7.938 kB / 409.7 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.648e-05/0.2355, allocations: 7.922 kB / 409.7 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.099e-05/0.2355, allocations: 20.45 kB / 409.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002804/0.2358, allocations: 40.39 kB / 409.7 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.236, allocations: 116.3 kB / 409.9 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.2361, allocations: 43.73 kB / 409.9 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.375e-05/0.2362, allocations: 35.86 kB / 409.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.155e-05/0.2362, allocations: 43.78 kB / 410 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.2363, allocations: 4.625 kB / 410 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.661e-05/0.2363, allocations: 4 kB / 410 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.029e-05/0.2363, allocations: 21.16 kB / 410 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.825e-05/0.2364, allocations: 45.64 kB / 410 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.2365, allocations: 88.73 kB / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2365, allocations: 0.9062 kB / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2365, allocations: 0 / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.2365, allocations: 0 / 410.1 MB, free: 25.18 MB / 298.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.0004788/0.237, allocations: 414.8 kB / 410.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.237, allocations: 8.031 kB / 410.5 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.137e-05/0.2371, allocations: 15.81 kB / 410.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.2372, allocations: 202.9 kB / 410.8 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.2373, allocations: 8 kB / 410.8 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.2373, allocations: 17.02 kB / 410.8 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000421/0.2377, allocations: 242.5 kB / 411 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.2378, allocations: 0 / 411 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.2378, allocations: 4 kB / 411 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2378, allocations: 8 kB / 411 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002339/0.238, allocations: 99.81 kB / 411.1 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004687/0.2385, allocations: 0.5882 MB / 411.7 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.2387, allocations: 151.9 kB / 411.9 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.2389, allocations: 78.64 kB / 411.9 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.2389, allocations: 11.98 kB / 412 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.724e-05/0.2389, allocations: 30.56 kB / 412 MB, free: 23.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.2389, allocations: 0 / 412 MB, free: 23.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004596/0.2394, allocations: 197.6 kB / 412.2 MB, free: 22.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.2395, allocations: 110.8 kB / 412.3 MB, free: 22.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.017e-05/0.2395, allocations: 141.8 kB / 412.4 MB, free: 22.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.2396, allocations: 25.7 kB / 412.5 MB, free: 22.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.165e-05/0.2396, allocations: 108.1 kB / 412.6 MB, free: 22.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.2396, allocations: 35.64 kB / 412.6 MB, free: 22.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.2396, allocations: 0 / 412.6 MB, free: 22.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.652e-05/0.2397, allocations: 326.8 kB / 412.9 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.2398, allocations: 35.97 kB / 412.9 MB, free: 22.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.24, allocations: 135.1 kB / 413.1 MB, free: 21.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001263/0.2401, allocations: 63.91 kB / 413.1 MB, free: 21.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.2401, allocations: 4 kB / 413.1 MB, free: 21.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003082/0.2404, allocations: 197.3 kB / 413.3 MB, free: 21.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.2404, allocations: 4 kB / 413.3 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.2405, allocations: 4 kB / 413.3 MB, free: 21.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.2405, allocations: 4 kB / 413.3 MB, free: 21.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.2406, allocations: 47.91 kB / 413.4 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.2407, allocations: 7.984 kB / 413.4 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.659e-05/0.2408, allocations: 32.17 kB / 413.4 MB, free: 21.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.2408, allocations: 8 kB / 413.4 MB, free: 21.54 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.172e-05/0.2409, allocations: 129.8 kB / 413.6 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.241, allocations: 85.72 kB / 413.7 MB, free: 21.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.241, allocations: 12.72 kB / 413.7 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.241, allocations: 11.92 kB / 413.7 MB, free: 21.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.241, allocations: 0 / 413.7 MB, free: 21.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.241, allocations: 3.984 kB / 413.7 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001901/0.2412, allocations: 209.5 kB / 413.9 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2413, allocations: 4 kB / 413.9 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.2414, allocations: 39.91 kB / 413.9 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.2414, allocations: 3.953 kB / 413.9 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.2415, allocations: 8 kB / 413.9 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2415, allocations: 0 / 413.9 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2415, allocations: 0 / 413.9 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004368/0.2419, allocations: 379.5 kB / 414.3 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.83e-05/0.2419, allocations: 93.09 kB / 414.4 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.242, allocations: 11.95 kB / 414.4 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.2421, allocations: 4.094 kB / 414.4 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.2421, allocations: 15.86 kB / 414.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.2422, allocations: 8 kB / 414.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.895e-05/0.2422, allocations: 95.27 kB / 414.5 MB, free: 20.33 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2422, allocations: 0 / 414.5 MB, free: 20.33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002724/0.2425, allocations: 31.84 kB / 414.6 MB, free: 20.3 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.999e-05/0.2426, allocations: 112.1 kB / 414.7 MB, free: 20.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002864/0.2429, allocations: 128.5 kB / 414.8 MB, free: 20.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2429, allocations: 0 / 414.8 MB, free: 20.06 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.076e-05/0.243, allocations: 31.98 kB / 414.8 MB, free: 20.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004447/0.2434, allocations: 53.56 kB / 414.9 MB, free: 19.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005944/0.244, allocations: 495.2 kB / 415.4 MB, free: 19.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001292/0.2442, allocations: 0.7125 MB / 416.1 MB, free: 18.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.2442, allocations: 19.44 kB / 416.1 MB, free: 18.7 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2442, allocations: 0 / 416.1 MB, free: 18.7 MB / 298.7 MB Notification: Performance of Templates: time 0.002359/0.2466, allocations: 1.47 MB / 417.6 MB, free: 17.24 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches