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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001269/0.001269, allocations: 192 kB / 18.62 MB, free: 4.41 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.324/1.324, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009833/0.0009834, allocations: 42.64 kB / 302 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0897/0.0907, allocations: 49.45 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003151/0.09389, allocations: 1.984 MB / 353.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007559/0.09467, allocations: 0.5064 MB / 354 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.815e-05/0.09478, allocations: 0 / 354 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001099/0.0949, allocations: 19.8 kB / 354 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.79e-05/0.09497, allocations: 23.8 kB / 354 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.09524, allocations: 58.38 kB / 354.1 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.0954, allocations: 127.5 kB / 354.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.09555, allocations: 45.3 kB / 354.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.154e-05/0.09563, allocations: 55.78 kB / 354.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.333e-05/0.09572, allocations: 55.7 kB / 354.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.09575, allocations: 12 kB / 354.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.002e-05/0.09577, allocations: 15.94 kB / 354.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.252e-05/0.09581, allocations: 27.91 kB / 354.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.275e-05/0.09588, allocations: 55.67 kB / 354.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.09604, allocations: 127.5 kB / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.09605, allocations: 0 / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.09605, allocations: 0 / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.09607, allocations: 0 / 354.6 MB, free: 0.582 MB / 286.1 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.0005605/0.09663, allocations: 435 kB / 355 MB, free: 112 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.09668, allocations: 12.03 kB / 355 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.329e-05/0.09672, allocations: 8.844 kB / 355 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.09699, allocations: 208.1 kB / 355.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.09701, allocations: 8.375 kB / 355.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.09705, allocations: 16.28 kB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000462/0.09752, allocations: 243.4 kB / 355.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.09754, allocations: 0 / 355.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.09756, allocations: 4 kB / 355.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.09758, allocations: 8 kB / 355.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002351/0.09781, allocations: 91.86 kB / 355.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005667/0.09839, allocations: 0.5843 MB / 356.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.09865, allocations: 151.9 kB / 356.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.09882, allocations: 78.62 kB / 356.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.09885, allocations: 0 / 356.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.09889, allocations: 46.5 kB / 356.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.09889, allocations: 0 / 356.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004678/0.09936, allocations: 177.3 kB / 356.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.937e-05/0.09944, allocations: 114.8 kB / 356.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.09955, allocations: 130.4 kB / 356.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.09958, allocations: 33.64 kB / 356.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.428e-05/0.09965, allocations: 108 kB / 357 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/0.09968, allocations: 31.64 kB / 357 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.09973, allocations: 37.64 kB / 357.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.73e-05/0.09984, allocations: 318.8 kB / 357.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.09995, allocations: 39.97 kB / 357.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.1001, allocations: 132.8 kB / 357.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.1004, allocations: 176.7 kB / 357.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1004, allocations: 0 / 357.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003268/0.1007, allocations: 185.5 kB / 357.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1007, allocations: 12.09 kB / 357.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1008, allocations: 4 kB / 357.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.1008, allocations: 11.92 kB / 357.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.1009, allocations: 39.92 kB / 358 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.101, allocations: 7.938 kB / 358 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.669e-05/0.1011, allocations: 23.92 kB / 358 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.1011, allocations: 8 kB / 358 MB, free: 12.76 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.235e-05/0.1012, allocations: 133.7 kB / 358.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.1013, allocations: 81.5 kB / 358.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.688e-05/0.1014, allocations: 24.64 kB / 358.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1014, allocations: 0 / 358.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1014, allocations: 4 kB / 358.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1014, allocations: 3.938 kB / 358.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.1016, allocations: 197.6 kB / 358.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1017, allocations: 0 / 358.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.1018, allocations: 35.98 kB / 358.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1018, allocations: 0 / 358.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.1018, allocations: 7.938 kB / 358.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1019, allocations: 4 kB / 358.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1019, allocations: 3.984 kB / 358.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004626/0.1023, allocations: 371 kB / 358.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.1024, allocations: 96.98 kB / 359 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.1024, allocations: 7.938 kB / 359 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.1025, allocations: 7.984 kB / 359 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.1026, allocations: 8 kB / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.1026, allocations: 4 kB / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.315e-05/0.1027, allocations: 99.95 kB / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1027, allocations: 96 / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000316/0.103, allocations: 27.94 kB / 359.1 MB, free: 11.56 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 (14): * Single equations (assignments): 14 * 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.0001017/0.1031, allocations: 111.4 kB / 359.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002907/0.1034, allocations: 115.8 kB / 359.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1034, allocations: 0 / 359.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.653e-05/0.1035, allocations: 32.78 kB / 359.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004474/0.104, allocations: 60.02 kB / 359.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006098/0.1046, allocations: 377.9 kB / 359.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.1048, allocations: 0.7162 MB / 360.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.891e-05/0.1049, allocations: 8.641 kB / 360.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.1049, allocations: 15.44 kB / 360.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1049, allocations: 0 / 360.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of Templates: time 0.003719/0.1086, allocations: 1.164 MB / 361.7 MB, free: 8.949 MB / 302.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches