Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001602/0.001602, allocations: 196.2 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 226.6 MB / 244.3 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007504/0.0007504, allocations: 94.67 kB / 296.4 MB, free: 6.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000197/0.000197, allocations: 8 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2001, allocations: 51.28 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.001773/0.2019, allocations: 1.588 MB / 409.1 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.2033, allocations: 1.119 MB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.2034, allocations: 7.938 kB / 410.2 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004925/0.2039, allocations: 143.6 kB / 410.3 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002606/0.2042, allocations: 119.6 kB / 410.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004099/0.2046, allocations: 175.7 kB / 410.6 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.2048, allocations: 176.2 kB / 410.8 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.865e-05/0.2049, allocations: 26.48 kB / 410.8 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.991e-05/0.205, allocations: 65.58 kB / 410.9 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.472e-05/0.205, allocations: 71.62 kB / 411 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.2051, allocations: 0 / 411 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.697e-05/0.2052, allocations: 39.98 kB / 411 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.61e-05/0.2052, allocations: 43.83 kB / 411 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.054e-05/0.2053, allocations: 47.14 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.2054, allocations: 160.6 kB / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2054, allocations: 0 / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2055, allocations: 0 / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.2055, allocations: 0.7812 kB / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005994/0.2061, allocations: 499.5 kB / 411.7 MB, free: 23.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.2061, allocations: 8.031 kB / 411.7 MB, free: 23.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.617e-05/0.2062, allocations: 19.8 kB / 411.8 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.2064, allocations: 253.7 kB / 412 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.2064, allocations: 4 kB / 412 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.2065, allocations: 8 kB / 412 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.2067, allocations: 153.2 kB / 412.2 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2068, allocations: 0 / 412.2 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.2068, allocations: 8 kB / 412.2 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2068, allocations: 0 / 412.2 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.853e-05/0.2069, allocations: 35.97 kB / 412.2 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003711/0.2073, allocations: 366.3 kB / 412.6 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.2075, allocations: 111.9 kB / 412.7 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.265e-05/0.2075, allocations: 38.56 kB / 412.7 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.2076, allocations: 4 kB / 412.7 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001361/0.2077, allocations: 83.31 kB / 412.8 MB, free: 22.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.154e-06/0.2077, allocations: 3.984 kB / 412.8 MB, free: 22.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002924/0.208, allocations: 141.3 kB / 413 MB, free: 22.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.2081, allocations: 136.7 kB / 413.1 MB, free: 21.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.2083, allocations: 269 kB / 413.3 MB, free: 21.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.2083, allocations: 29.7 kB / 413.4 MB, free: 21.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.081e-05/0.2084, allocations: 120 kB / 413.5 MB, free: 21.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.2084, allocations: 19.8 kB / 413.5 MB, free: 21.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-06/0.2084, allocations: 4 kB / 413.5 MB, free: 21.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.104e-05/0.2084, allocations: 330.8 kB / 413.8 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.174e-05/0.2085, allocations: 19.98 kB / 413.9 MB, free: 21.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.454e-05/0.2086, allocations: 70 kB / 413.9 MB, free: 21.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.943e-05/0.2086, allocations: 27.98 kB / 414 MB, free: 21.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2087, allocations: 0 / 414 MB, free: 21.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001595/0.2088, allocations: 117.7 kB / 414.1 MB, free: 20.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.2088, allocations: 8 kB / 414.1 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2088, allocations: 0 / 414.1 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.869e-06/0.2089, allocations: 0 / 414.1 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.319e-05/0.2089, allocations: 16 kB / 414.1 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.209, allocations: 3.938 kB / 414.1 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.517e-05/0.209, allocations: 19.92 kB / 414.1 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.655e-06/0.209, allocations: 4 kB / 414.1 MB, free: 20.86 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 8.912e-05/0.2091, allocations: 145.9 kB / 414.3 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.886e-05/0.2092, allocations: 61.36 kB / 414.3 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.362e-05/0.2092, allocations: 25.7 kB / 414.3 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2093, allocations: 4 kB / 414.4 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2093, allocations: 0 / 414.4 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.2093, allocations: 0 / 414.4 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.2094, allocations: 229.5 kB / 414.6 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2094, allocations: 0 / 414.6 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.369e-05/0.2094, allocations: 4 kB / 414.6 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2094, allocations: 8.062 kB / 414.6 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.2095, allocations: 0 / 414.6 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2095, allocations: 3.938 kB / 414.6 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2095, allocations: 7.984 kB / 414.6 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001766/0.2097, allocations: 146.7 kB / 414.7 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.064e-05/0.2097, allocations: 120.7 kB / 414.9 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.2098, allocations: 8 kB / 414.9 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.979e-05/0.2098, allocations: 4.094 kB / 414.9 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.926e-05/0.2099, allocations: 19.86 kB / 414.9 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.2099, allocations: 4 kB / 414.9 MB, free: 19.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001338/0.21, allocations: 200.5 kB / 415.1 MB, free: 19.78 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.21, allocations: 0 / 415.1 MB, free: 19.78 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002143/0.2103, allocations: 28 kB / 415.1 MB, free: 19.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007857/0.211, allocations: 415 kB / 415.5 MB, free: 19.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001697/0.2112, allocations: 63.91 kB / 415.6 MB, free: 19.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2112, allocations: 0 / 415.6 MB, free: 19.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.613e-05/0.2113, allocations: 27.94 kB / 415.6 MB, free: 19.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.2117, allocations: 61.97 kB / 415.7 MB, free: 19.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004448/0.2121, allocations: 378 kB / 416 MB, free: 18.92 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.2123, allocations: 0.7283 MB / 416.8 MB, free: 18.17 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/0.2123, allocations: 23.44 kB / 416.8 MB, free: 18.14 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2123, allocations: 3.938 kB / 416.8 MB, free: 18.14 MB / 298.7 MB Notification: Performance of Templates: time 0.00352/0.2158, allocations: 2.64 MB / 419.4 MB, free: 15.51 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches