Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001502/0.001502, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.47/1.47, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 50.8 kB / 301.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1366, allocations: 49.45 MB / 350.7 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003109/0.1398, allocations: 1.538 MB / 352.3 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008747/0.1407, allocations: 0.4884 MB / 352.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.176e-05/0.1408, allocations: 0 / 352.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.31e-05/0.1408, allocations: 7.875 kB / 352.8 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.141, allocations: 11.92 kB / 352.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002983/0.1413, allocations: 51.81 kB / 352.8 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.894e-05/0.1414, allocations: 47.8 kB / 352.9 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.1415, allocations: 20.19 kB / 352.9 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.227e-05/0.1416, allocations: 23.86 kB / 352.9 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.868e-05/0.1417, allocations: 23.84 kB / 352.9 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.1417, allocations: 4 kB / 352.9 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.404e-05/0.1417, allocations: 4 kB / 353 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.058e-05/0.1418, allocations: 15.92 kB / 353 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.043e-05/0.1418, allocations: 23.81 kB / 353 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.1419, allocations: 59.8 kB / 353.1 MB, free: 2.055 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1419, allocations: 0 / 353.1 MB, free: 2.055 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1419, allocations: 0 / 353.1 MB, free: 2.055 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.142, allocations: 4 kB / 353.1 MB, free: 2.051 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004924/0.1425, allocations: 379.3 kB / 353.4 MB, free: 1.633 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1425, allocations: 8.031 kB / 353.4 MB, free: 1.625 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.1425, allocations: 8.844 kB / 353.4 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.1428, allocations: 196.1 kB / 353.6 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.397e-06/0.1428, allocations: 384 / 353.6 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/0.1428, allocations: 4.375 kB / 353.6 MB, free: 1.383 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.1431, allocations: 121.1 kB / 353.8 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.1431, allocations: 4 kB / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-06/0.1431, allocations: 0 / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1431, allocations: 0 / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.444e-05/0.1432, allocations: 15.98 kB / 353.8 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003325/0.1436, allocations: 269.7 kB / 354 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.113e-05/0.1437, allocations: 41.16 kB / 354.1 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.009e-05/0.1437, allocations: 25.7 kB / 354.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.1438, allocations: 0 / 354.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.1438, allocations: 42.5 kB / 354.1 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.1438, allocations: 0 / 354.1 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002451/0.144, allocations: 65.58 kB / 354.2 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.848e-05/0.1441, allocations: 81.05 kB / 354.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.1443, allocations: 148.7 kB / 354.4 MB, free: 460 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.1443, allocations: 25.95 kB / 354.5 MB, free: 428 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.277e-05/0.1444, allocations: 92.14 kB / 354.5 MB, free: 332 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.1444, allocations: 3.938 kB / 354.6 MB, free: 328 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.995e-05/0.1445, allocations: 21.62 kB / 354.6 MB, free: 300 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1446, allocations: 322.7 kB / 354.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.2e-05/0.1447, allocations: 8 kB / 354.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.153e-05/0.1447, allocations: 21.7 kB / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.288e-05/0.1448, allocations: 29.77 kB / 354.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1448, allocations: 0 / 354.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001146/0.1449, allocations: 57.62 kB / 355 MB, free: 15.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.145, allocations: 4 kB / 355 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.145, allocations: 0 / 355 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.145, allocations: 0 / 355 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.003e-05/0.1451, allocations: 12.05 kB / 355 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1451, allocations: 4 kB / 355 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.335e-05/0.1451, allocations: 0 / 355 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.1451, allocations: 0 / 355 MB, free: 15.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.229e-05/0.1452, allocations: 129.7 kB / 355.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.625e-05/0.1453, allocations: 33.61 kB / 355.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.1453, allocations: 11.88 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1453, allocations: 3.984 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.1454, allocations: 8.031 kB / 355.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1454, allocations: 0 / 355.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.1455, allocations: 169.6 kB / 355.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1456, allocations: 0 / 355.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.273e-05/0.1456, allocations: 7.984 kB / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1456, allocations: 4 kB / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.1456, allocations: 0 / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1456, allocations: 0 / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1456, allocations: 0 / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001698/0.1458, allocations: 168.2 kB / 355.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.925e-05/0.1459, allocations: 93 kB / 355.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.1459, allocations: 0 / 355.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.846e-05/0.146, allocations: 8 kB / 355.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.204e-05/0.146, allocations: 0 / 355.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.146, allocations: 3.938 kB / 355.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.772e-05/0.1461, allocations: 111.2 kB / 355.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1461, allocations: 4.031 kB / 355.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002209/0.1464, allocations: 8 kB / 355.8 MB, free: 14.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 9.482e-05/0.1465, allocations: 99.72 kB / 355.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001353/0.1466, allocations: 27.86 kB / 355.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1466, allocations: 0 / 355.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.73e-05/0.1466, allocations: 11.98 kB / 355.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.1471, allocations: 24.14 kB / 355.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004041/0.1475, allocations: 201.1 kB / 356.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.1478, allocations: 0.6885 MB / 356.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.055e-05/0.1478, allocations: 15.53 kB / 356.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1478, allocations: 0 / 356.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of Templates: time 0.002584/0.1504, allocations: 0.7497 MB / 357.6 MB, free: 13.09 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches