Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001483/0.001482, allocations: 113.3 kB / 17.69 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 192 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 44.45 kB / 302.1 MB, free: 5.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09091, allocations: 49.45 MB / 351.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003444/0.09441, allocations: 2.012 MB / 353.5 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008509/0.09528, allocations: 0.5726 MB / 354.1 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.995e-05/0.09539, allocations: 7.938 kB / 354.1 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.09551, allocations: 15.8 kB / 354.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001637/0.09568, allocations: 27.72 kB / 354.1 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.09596, allocations: 71.8 kB / 354.2 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.09616, allocations: 127.6 kB / 354.3 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.09632, allocations: 61.66 kB / 354.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.791e-05/0.0964, allocations: 47.84 kB / 354.4 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.834e-05/0.0965, allocations: 55.7 kB / 354.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/0.09654, allocations: 15.98 kB / 354.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.278e-05/0.09656, allocations: 12 kB / 354.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.769e-05/0.09663, allocations: 39.8 kB / 354.6 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.522e-05/0.0967, allocations: 67.59 kB / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.09687, allocations: 147.4 kB / 354.8 MB, free: 448 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.09689, allocations: 0 / 354.8 MB, free: 448 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09689, allocations: 0 / 354.8 MB, free: 448 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.0969, allocations: 0 / 354.8 MB, free: 448 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005888/0.0975, allocations: 450.9 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.09753, allocations: 8.031 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.125e-05/0.09758, allocations: 20.75 kB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.09782, allocations: 220 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.09785, allocations: 12.36 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.582e-05/0.09789, allocations: 16.28 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.09835, allocations: 267.3 kB / 355.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.09837, allocations: 0 / 355.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.0984, allocations: 7.984 kB / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.09841, allocations: 7.938 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002262/0.09865, allocations: 91.86 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005616/0.09922, allocations: 0.596 MB / 356.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/0.09955, allocations: 147.7 kB / 356.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.09971, allocations: 78.62 kB / 356.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.09974, allocations: 8.125 kB / 356.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.821e-05/0.09976, allocations: 30.56 kB / 356.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.09977, allocations: 4 kB / 356.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004995/0.1003, allocations: 189.2 kB / 356.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/0.1004, allocations: 114.8 kB / 357 MB, free: 13.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.1005, allocations: 150.2 kB / 357.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1005, allocations: 33.7 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.272e-05/0.1006, allocations: 116.5 kB / 357.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.1006, allocations: 27.64 kB / 357.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-05/0.1007, allocations: 33.72 kB / 357.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1008, allocations: 326.8 kB / 357.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.1009, allocations: 35.97 kB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.1011, allocations: 137.6 kB / 357.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.1014, allocations: 185.5 kB / 358 MB, free: 12.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1014, allocations: 0 / 358 MB, free: 12.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003393/0.1017, allocations: 201.1 kB / 358.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1017, allocations: 4 kB / 358.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1018, allocations: 4 kB / 358.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.1018, allocations: 8.469 kB / 358.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.1019, allocations: 47.92 kB / 358.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.102, allocations: 7.984 kB / 358.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.669e-05/0.1021, allocations: 19.84 kB / 358.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.1021, allocations: 12 kB / 358.3 MB, free: 12.48 MB / 302.1 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 () * Number of clocked states: 1 (PI.x) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.423e-05/0.1022, allocations: 138 kB / 358.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.1023, allocations: 97.38 kB / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.234e-05/0.1024, allocations: 24.7 kB / 358.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.1024, allocations: 8 kB / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1024, allocations: 0 / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1024, allocations: 4.172 kB / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002573/0.1027, allocations: 213.4 kB / 358.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1027, allocations: 4 kB / 358.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.1029, allocations: 35.97 kB / 358.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1029, allocations: 7.984 kB / 358.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.1029, allocations: 0 / 358.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.1029, allocations: 7.938 kB / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1029, allocations: 0 / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.1034, allocations: 387.3 kB / 359.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.89e-05/0.1035, allocations: 97.03 kB / 359.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.1036, allocations: 4 kB / 359.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.1037, allocations: 12.05 kB / 359.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.1037, allocations: 7.984 kB / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.1037, allocations: 12 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.992e-05/0.1038, allocations: 120.1 kB / 359.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1038, allocations: 3.938 kB / 359.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.1042, allocations: 35.84 kB / 359.5 MB, free: 11.18 MB / 302.1 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001011/0.1043, allocations: 99.25 kB / 359.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002868/0.1046, allocations: 119.8 kB / 359.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1046, allocations: 0 / 359.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.972e-05/0.1047, allocations: 31.97 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004788/0.1052, allocations: 72.86 kB / 359.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006814/0.1058, allocations: 416.1 kB / 360.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.1061, allocations: 0.724 MB / 361 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.682e-05/0.1062, allocations: 13.42 kB / 361 MB, free: 9.652 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.1062, allocations: 19.38 kB / 361 MB, free: 9.637 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1062, allocations: 0 / 361 MB, free: 9.637 MB / 302.1 MB Notification: Performance of Templates: time 0.003693/0.1099, allocations: 1.333 MB / 362.3 MB, free: 8.348 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches