Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009821/0.0009822, allocations: 175.2 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.26/1.26, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.0008217/0.0008217, allocations: 84.11 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.499e-05/1.5e-05, allocations: 4 kB / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0827/0.08273, allocations: 50.42 MB / 394.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2861/0.3689, allocations: 78.59 MB / 472.8 MB, free: 8.941 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001741/0.3691, allocations: 71.95 kB / 472.9 MB, free: 8.871 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006443/0.3755, allocations: 2.369 MB / 475.3 MB, free: 6.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.3756, allocations: 0 / 475.3 MB, free: 6.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.3756, allocations: 7.938 kB / 475.3 MB, free: 6.504 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004712/0.3761, allocations: 406.7 kB / 475.7 MB, free: 6.062 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.3761, allocations: 12.03 kB / 475.7 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.928e-05/0.3761, allocations: 7.906 kB / 475.7 MB, free: 6.043 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.3763, allocations: 210.8 kB / 475.9 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.3764, allocations: 12 kB / 475.9 MB, free: 5.785 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.923e-05/0.3764, allocations: 12 kB / 475.9 MB, free: 5.773 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.3768, allocations: 222.7 kB / 476.1 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3768, allocations: 3.906 kB / 476.1 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.3768, allocations: 15.95 kB / 476.2 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3768, allocations: 0 / 476.2 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001291/0.377, allocations: 67.86 kB / 476.2 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005945/0.3776, allocations: 0.5882 MB / 476.8 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.3778, allocations: 135.7 kB / 476.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.125e-05/0.3779, allocations: 66.8 kB / 477 MB, free: 4.547 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.378, allocations: 7.922 kB / 477 MB, free: 4.539 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.378, allocations: 42.56 kB / 477.1 MB, free: 4.488 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.378, allocations: 4 kB / 477.1 MB, free: 4.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002401/0.3783, allocations: 109.5 kB / 477.2 MB, free: 4.371 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.3783, allocations: 114.8 kB / 477.3 MB, free: 4.234 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.931e-05/0.3784, allocations: 123.5 kB / 477.4 MB, free: 4.105 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.3785, allocations: 29.7 kB / 477.4 MB, free: 4.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.399e-05/0.3785, allocations: 111.8 kB / 477.5 MB, free: 3.957 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.3786, allocations: 19.72 kB / 477.6 MB, free: 3.938 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-06/0.3786, allocations: 8 kB / 477.6 MB, free: 3.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3787, allocations: 326.8 kB / 477.9 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.913e-05/0.3788, allocations: 24.38 kB / 477.9 MB, free: 3.574 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.3789, allocations: 126.4 kB / 478 MB, free: 3.402 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.079e-05/0.3789, allocations: 39.98 kB / 478.1 MB, free: 3.363 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.379, allocations: 0 / 478.1 MB, free: 3.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002365/0.3792, allocations: 173.2 kB / 478.2 MB, free: 3.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.3792, allocations: 4 kB / 478.3 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3792, allocations: 4 kB / 478.3 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3793, allocations: 8 kB / 478.3 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.3794, allocations: 47.92 kB / 478.3 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.3794, allocations: 7.984 kB / 478.3 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.3796, allocations: 28.25 kB / 478.3 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.3796, allocations: 8 kB / 478.4 MB, free: 3.082 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.87e-05/0.3797, allocations: 120.8 kB / 478.5 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.3798, allocations: 93.56 kB / 478.6 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.605e-05/0.3799, allocations: 16.61 kB / 478.6 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3799, allocations: 4 kB / 478.6 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3799, allocations: 0 / 478.6 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3799, allocations: 4 kB / 478.6 MB, free: 2.836 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.3802, allocations: 209.5 kB / 478.8 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3802, allocations: 0 / 478.8 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.3804, allocations: 39.91 kB / 478.8 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3804, allocations: 4 kB / 478.8 MB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.3804, allocations: 4 kB / 478.8 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.3804, allocations: 0.625 kB / 478.8 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3804, allocations: 4 kB / 478.8 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.3808, allocations: 369.6 kB / 479.2 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/0.3808, allocations: 96.88 kB / 479.3 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.3809, allocations: 4 kB / 479.3 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.381, allocations: 15.98 kB / 479.3 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.451e-05/0.3811, allocations: 11.95 kB / 479.3 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.3811, allocations: 4 kB / 479.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.558e-05/0.3811, allocations: 103.3 kB / 479.4 MB, free: 1.891 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3811, allocations: 0 / 479.4 MB, free: 1.891 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002884/0.3814, allocations: 24 kB / 479.5 MB, free: 1.867 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 (15): * Single equations (assignments): 15 * 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.000113/0.3816, allocations: 103.2 kB / 479.6 MB, free: 1.758 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001796/0.3817, allocations: 100.4 kB / 479.7 MB, free: 1.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3818, allocations: 0 / 479.7 MB, free: 1.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.503e-05/0.3818, allocations: 15.94 kB / 479.7 MB, free: 1.645 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.3821, allocations: 51.95 kB / 479.7 MB, free: 1.594 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00052/0.3826, allocations: 296.1 kB / 480 MB, free: 1.281 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.3829, allocations: 0.7128 MB / 480.7 MB, free: 0.543 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.834e-05/0.383, allocations: 13.2 kB / 480.7 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.294e-05/0.383, allocations: 15.44 kB / 480.8 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.383, allocations: 0 / 480.8 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of Templates: time 0.003069/0.3861, allocations: 1.034 MB / 481.8 MB, free: 15.5 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches