Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009462/0.0009462, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.3 MB / 235.5 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008404/0.0008407, allocations: 97.84 kB / 286.5 MB, free: 212 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.11e-05/2.112e-05, allocations: 0 / 343.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08166/0.0817, allocations: 50.41 MB / 394.2 MB, free: 1.852 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2831/0.3648, allocations: 78.56 MB / 472.8 MB, free: 8.977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.365, allocations: 67.97 kB / 472.9 MB, free: 8.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006383/0.3714, allocations: 2.356 MB / 475.2 MB, free: 6.562 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3715, allocations: 0 / 475.2 MB, free: 6.562 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.3715, allocations: 0 / 475.2 MB, free: 6.562 MB / 346.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.0004579/0.3719, allocations: 402.8 kB / 475.6 MB, free: 6.125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.372, allocations: 8.031 kB / 475.6 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.183e-05/0.372, allocations: 15.86 kB / 475.6 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000228/0.3723, allocations: 203 kB / 475.8 MB, free: 5.863 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.3723, allocations: 8 kB / 475.8 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.145e-05/0.3724, allocations: 12 kB / 475.9 MB, free: 5.844 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003982/0.3728, allocations: 219.2 kB / 476.1 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.3728, allocations: 0 / 476.1 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.3728, allocations: 11.95 kB / 476.1 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.3728, allocations: 4 kB / 476.1 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.373, allocations: 63.92 kB / 476.1 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005968/0.3736, allocations: 0.592 MB / 476.7 MB, free: 4.859 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.3738, allocations: 140.1 kB / 476.9 MB, free: 4.695 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.207e-05/0.3739, allocations: 70.59 kB / 476.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.3739, allocations: 4 kB / 476.9 MB, free: 4.613 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.3739, allocations: 34.56 kB / 477 MB, free: 4.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.3739, allocations: 3.938 kB / 477 MB, free: 4.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.000259/0.3742, allocations: 113.5 kB / 477.1 MB, free: 4.449 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.799e-05/0.3743, allocations: 110.8 kB / 477.2 MB, free: 4.316 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.733e-05/0.3744, allocations: 116.8 kB / 477.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.3744, allocations: 29.7 kB / 477.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.846e-05/0.3745, allocations: 116 kB / 477.5 MB, free: 4.043 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.602e-05/0.3745, allocations: 27.64 kB / 477.5 MB, free: 4.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.311e-06/0.3745, allocations: 4 kB / 477.5 MB, free: 4.012 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.3746, allocations: 326.8 kB / 477.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.493e-05/0.3747, allocations: 27.94 kB / 477.8 MB, free: 3.656 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.477e-05/0.3748, allocations: 113.4 kB / 477.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.772e-05/0.3749, allocations: 39.92 kB / 478 MB, free: 3.461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3749, allocations: 4 kB / 478 MB, free: 3.457 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002311/0.3751, allocations: 161.2 kB / 478.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3751, allocations: 4.938 kB / 478.2 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3752, allocations: 4 kB / 478.2 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.3752, allocations: 8 kB / 478.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.3754, allocations: 48.34 kB / 478.2 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.3754, allocations: 11.95 kB / 478.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.3755, allocations: 23.83 kB / 478.2 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.3755, allocations: 12 kB / 478.3 MB, free: 3.184 MB / 346.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 () * 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 6.962e-05/0.3756, allocations: 112.9 kB / 478.4 MB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.3758, allocations: 81.53 kB / 478.4 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.29e-05/0.3758, allocations: 16.62 kB / 478.5 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3758, allocations: 0 / 478.5 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3758, allocations: 4 kB / 478.5 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3758, allocations: 7.953 kB / 478.5 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002523/0.3761, allocations: 209.4 kB / 478.7 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3761, allocations: 0 / 478.7 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.3763, allocations: 35.97 kB / 478.7 MB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3763, allocations: 4 kB / 478.7 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.3763, allocations: 4 kB / 478.7 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.3763, allocations: 0 / 478.7 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3764, allocations: 12.61 kB / 478.7 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003336/0.3767, allocations: 354.9 kB / 479.1 MB, free: 2.266 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.593e-05/0.3767, allocations: 92.97 kB / 479.2 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.3768, allocations: 4 kB / 479.2 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.3769, allocations: 11.95 kB / 479.2 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.377, allocations: 12.05 kB / 479.2 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.557e-06/0.377, allocations: 8 kB / 479.2 MB, free: 2.121 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.787e-05/0.377, allocations: 99.27 kB / 479.3 MB, free: 2.023 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3771, allocations: 0 / 479.3 MB, free: 2.023 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000295/0.3774, allocations: 31.91 kB / 479.3 MB, free: 1.992 MB / 346.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 () * 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.0001339/0.3775, allocations: 107.2 kB / 479.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001731/0.3777, allocations: 96.73 kB / 479.5 MB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3777, allocations: 0 / 479.5 MB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.66e-05/0.3777, allocations: 16 kB / 479.6 MB, free: 1.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.3781, allocations: 46.31 kB / 479.6 MB, free: 1.727 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004989/0.3786, allocations: 292.2 kB / 479.9 MB, free: 1.418 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.3789, allocations: 0.7203 MB / 480.6 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.966e-05/0.3789, allocations: 12.77 kB / 480.6 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.083e-05/0.379, allocations: 15.44 kB / 480.6 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.379, allocations: 0 / 480.6 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of Templates: time 0.003127/0.3821, allocations: 1.008 MB / 481.6 MB, free: 15.68 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches