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/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_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_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001864/0.001864, allocations: 200.5 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 226.5 MB / 245.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007903/0.0007903, allocations: 100 kB / 297.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002317/0.0002318, allocations: 7.984 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2246, allocations: 51.28 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09581/0.3204, allocations: 79.39 MB / 488.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.3207, allocations: 72.59 kB / 488.8 MB, free: 12.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006592/0.3273, allocations: 2.414 MB / 491.2 MB, free: 9.664 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3274, allocations: 4 kB / 491.2 MB, free: 9.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.417e-05/0.3274, allocations: 0 / 491.2 MB, free: 9.66 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.0005752/0.328, allocations: 427.1 kB / 491.7 MB, free: 9.191 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.328, allocations: 8.031 kB / 491.7 MB, free: 9.184 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.869e-05/0.3281, allocations: 12.84 kB / 491.7 MB, free: 9.172 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.3283, allocations: 211.6 kB / 491.9 MB, free: 8.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3284, allocations: 12.38 kB / 491.9 MB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.168e-05/0.3284, allocations: 16.31 kB / 491.9 MB, free: 8.902 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005281/0.3289, allocations: 231.2 kB / 492.1 MB, free: 8.652 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.329, allocations: 4.125 kB / 492.1 MB, free: 8.648 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.329, allocations: 7.938 kB / 492.1 MB, free: 8.641 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.329, allocations: 8 kB / 492.2 MB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002731/0.3293, allocations: 99.8 kB / 492.3 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007036/0.33, allocations: 0.5804 MB / 492.8 MB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.3303, allocations: 147.9 kB / 493 MB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.3305, allocations: 86.56 kB / 493.1 MB, free: 7.617 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.3305, allocations: 11.98 kB / 493.1 MB, free: 7.605 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.3305, allocations: 30.56 kB / 493.1 MB, free: 7.566 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.3305, allocations: 0 / 493.1 MB, free: 7.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005521/0.3311, allocations: 201.4 kB / 493.3 MB, free: 7.363 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.3312, allocations: 111.1 kB / 493.4 MB, free: 7.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.3313, allocations: 130.1 kB / 493.5 MB, free: 7.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.3314, allocations: 25.7 kB / 493.6 MB, free: 7.059 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.683e-05/0.3315, allocations: 112 kB / 493.7 MB, free: 6.945 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.503e-05/0.3315, allocations: 35.77 kB / 493.7 MB, free: 6.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-06/0.3315, allocations: 3.938 kB / 493.7 MB, free: 6.906 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3317, allocations: 322.8 kB / 494 MB, free: 6.582 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.3318, allocations: 39.97 kB / 494.1 MB, free: 6.543 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.332, allocations: 136.4 kB / 494.2 MB, free: 6.367 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003234/0.3324, allocations: 196.6 kB / 494.4 MB, free: 6.129 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3324, allocations: 0 / 494.4 MB, free: 6.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004143/0.3328, allocations: 193.3 kB / 494.6 MB, free: 5.934 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.3328, allocations: 11.94 kB / 494.6 MB, free: 5.922 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3328, allocations: 7.984 kB / 494.6 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.3329, allocations: 4 kB / 494.6 MB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.3331, allocations: 51.84 kB / 494.7 MB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.3331, allocations: 7.938 kB / 494.7 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.3332, allocations: 24.19 kB / 494.7 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.3332, allocations: 11.98 kB / 494.7 MB, free: 5.816 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.0001344/0.3334, allocations: 125.8 kB / 494.8 MB, free: 5.684 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.3335, allocations: 85.5 kB / 494.9 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.65e-05/0.3336, allocations: 16.72 kB / 494.9 MB, free: 5.574 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3336, allocations: 3.938 kB / 494.9 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3336, allocations: 0 / 494.9 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.3336, allocations: 4 kB / 494.9 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002767/0.3339, allocations: 205.5 kB / 495.1 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3339, allocations: 0 / 495.1 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.3341, allocations: 39.91 kB / 495.2 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.177e-06/0.3341, allocations: 0 / 495.2 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.3341, allocations: 8 kB / 495.2 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.3342, allocations: 3.938 kB / 495.2 MB, free: 5.266 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3342, allocations: 0 / 495.2 MB, free: 5.266 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005151/0.3347, allocations: 391.4 kB / 495.6 MB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.092e-05/0.3348, allocations: 93.09 kB / 495.7 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.3348, allocations: 8 kB / 495.7 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.3349, allocations: 15.94 kB / 495.7 MB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.899e-05/0.335, allocations: 3.984 kB / 495.7 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.335, allocations: 4.094 kB / 495.7 MB, free: 4.723 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.924e-05/0.3351, allocations: 106.4 kB / 495.8 MB, free: 4.621 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3351, allocations: 0 / 495.8 MB, free: 4.621 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003127/0.3354, allocations: 27.94 kB / 495.8 MB, free: 4.594 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.0001318/0.3355, allocations: 107.2 kB / 495.9 MB, free: 4.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003151/0.3358, allocations: 128.6 kB / 496 MB, free: 4.355 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.3359, allocations: 0 / 496 MB, free: 4.355 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.802e-05/0.336, allocations: 35.92 kB / 496.1 MB, free: 4.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000512/0.3365, allocations: 49.62 kB / 496.1 MB, free: 4.273 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008269/0.3373, allocations: 484.7 kB / 496.6 MB, free: 3.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/0.3376, allocations: 0.7126 MB / 497.3 MB, free: 3.035 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.348e-05/0.3377, allocations: 8.641 kB / 497.3 MB, free: 3.027 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.264e-05/0.3377, allocations: 19.44 kB / 497.3 MB, free: 3.008 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3377, allocations: 0 / 497.3 MB, free: 3.008 MB / 362.7 MB Notification: Performance of Templates: time 0.003726/0.3414, allocations: 1.007 MB / 498.3 MB, free: 2.047 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches