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.001181/0.001181, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007788/0.0007786, allocations: 95.67 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000201/0.000201, allocations: 4 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2052, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1269/0.3321, allocations: 79.38 MB / 488 MB, free: 12.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.3325, allocations: 75.97 kB / 488.1 MB, free: 12.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009246/0.3417, allocations: 2.41 MB / 490.5 MB, free: 9.762 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.707e-06/0.3418, allocations: 4 kB / 490.5 MB, free: 9.758 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.3418, allocations: 4 kB / 490.5 MB, free: 9.754 MB / 362.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.0006529/0.3425, allocations: 423.1 kB / 490.9 MB, free: 9.289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3425, allocations: 8.031 kB / 491 MB, free: 9.281 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.341e-05/0.3426, allocations: 16.78 kB / 491 MB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.3428, allocations: 204.2 kB / 491.2 MB, free: 9.027 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.3429, allocations: 12.38 kB / 491.2 MB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.173e-05/0.3429, allocations: 16.38 kB / 491.2 MB, free: 9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006041/0.3435, allocations: 239.2 kB / 491.4 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.3436, allocations: 192 / 491.4 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.3436, allocations: 7.938 kB / 491.4 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.3436, allocations: 4 kB / 491.4 MB, free: 8.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003572/0.344, allocations: 99.81 kB / 491.5 MB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007427/0.3447, allocations: 0.5804 MB / 492.1 MB, free: 7.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.3451, allocations: 155.9 kB / 492.3 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/0.3453, allocations: 86.56 kB / 492.4 MB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.3454, allocations: 4 kB / 492.4 MB, free: 7.703 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.3454, allocations: 34.56 kB / 492.4 MB, free: 7.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.694e-06/0.3454, allocations: 0 / 492.4 MB, free: 7.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007072/0.3462, allocations: 193.6 kB / 492.6 MB, free: 7.465 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.517e-05/0.3463, allocations: 122.8 kB / 492.7 MB, free: 7.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.3464, allocations: 126.2 kB / 492.8 MB, free: 7.184 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.3464, allocations: 29.7 kB / 492.9 MB, free: 7.148 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.4e-05/0.3465, allocations: 108 kB / 493 MB, free: 7.039 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.568e-05/0.3465, allocations: 27.64 kB / 493 MB, free: 7.012 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.026e-05/0.3466, allocations: 4 kB / 493 MB, free: 7.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.3467, allocations: 322.8 kB / 493.3 MB, free: 6.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.3469, allocations: 39.97 kB / 493.3 MB, free: 6.645 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.3471, allocations: 144.5 kB / 493.5 MB, free: 6.461 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.3476, allocations: 188.8 kB / 493.7 MB, free: 6.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3476, allocations: 0 / 493.7 MB, free: 6.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005571/0.3481, allocations: 197.2 kB / 493.9 MB, free: 6.031 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3482, allocations: 8 kB / 493.9 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3482, allocations: 0 / 493.9 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.3482, allocations: 8 kB / 493.9 MB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.3485, allocations: 52.28 kB / 493.9 MB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.3485, allocations: 11.94 kB / 493.9 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.3487, allocations: 27.77 kB / 494 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.3487, allocations: 8 kB / 494 MB, free: 5.918 MB / 362.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 0.0001301/0.3489, allocations: 125.8 kB / 494.1 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/0.3491, allocations: 85.44 kB / 494.2 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.177e-05/0.3492, allocations: 12.72 kB / 494.2 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3492, allocations: 11.94 kB / 494.2 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3492, allocations: 0 / 494.2 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.3492, allocations: 7.984 kB / 494.2 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003707/0.3496, allocations: 197.6 kB / 494.4 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.3496, allocations: 3.984 kB / 494.4 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.3499, allocations: 39.92 kB / 494.5 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3499, allocations: 0 / 494.5 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.3499, allocations: 4 kB / 494.5 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.3499, allocations: 3.938 kB / 494.5 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.35, allocations: 4 kB / 494.5 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007318/0.3507, allocations: 395.3 kB / 494.8 MB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.622e-05/0.3508, allocations: 85.05 kB / 494.9 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.42e-05/0.3508, allocations: 12.09 kB / 494.9 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.3511, allocations: 15.86 kB / 495 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.3511, allocations: 8 kB / 495 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.3512, allocations: 4 kB / 495 MB, free: 4.816 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.833e-05/0.3513, allocations: 102.4 kB / 495.1 MB, free: 4.719 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3513, allocations: 0 / 495.1 MB, free: 4.719 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005676/0.3518, allocations: 27.94 kB / 495.1 MB, free: 4.691 MB / 362.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 0.0001487/0.352, allocations: 107.2 kB / 495.2 MB, free: 4.578 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004471/0.3525, allocations: 128.1 kB / 495.3 MB, free: 4.453 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3525, allocations: 0 / 495.3 MB, free: 4.453 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.3526, allocations: 39.91 kB / 495.4 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007379/0.3534, allocations: 49.25 kB / 495.4 MB, free: 4.367 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009765/0.3544, allocations: 495.3 kB / 495.9 MB, free: 3.848 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.3547, allocations: 0.7126 MB / 496.6 MB, free: 3.109 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.614e-05/0.3548, allocations: 19.42 kB / 496.6 MB, free: 3.09 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3548, allocations: 4 kB / 496.6 MB, free: 3.086 MB / 362.7 MB Notification: Performance of Templates: time 0.003847/0.3586, allocations: 1.478 MB / 498.1 MB, free: 1.621 MB / 362.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/jenkins1/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