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.001533/0.001533, allocations: 196.1 kB / 17.38 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.589/1.589, allocations: 226.6 MB / 244.7 MB, free: 6.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008675/0.0008673, allocations: 101.7 kB / 296.8 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003596, allocations: 12 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2976, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002502/0.3001, allocations: 1.587 MB / 409.6 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.3017, allocations: 1.115 MB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.3019, allocations: 0 / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000608/0.3025, allocations: 135.6 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002967/0.3028, allocations: 125.3 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004267/0.3033, allocations: 165.2 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001878/0.3035, allocations: 172.2 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.3036, allocations: 34.44 kB / 411.4 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.654e-05/0.3037, allocations: 58.75 kB / 411.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.234e-05/0.3038, allocations: 71.62 kB / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.3038, allocations: 4 kB / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.3039, allocations: 35.97 kB / 411.5 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.146e-05/0.304, allocations: 43.83 kB / 411.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.392e-05/0.3041, allocations: 89.31 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.3042, allocations: 152.6 kB / 411.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3043, allocations: 0 / 411.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3043, allocations: 1.188 kB / 411.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.3043, allocations: 0 / 411.8 MB, free: 23.9 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.0006375/0.3049, allocations: 497.5 kB / 412.3 MB, free: 23.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.305, allocations: 8.031 kB / 412.3 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.878e-05/0.305, allocations: 27.03 kB / 412.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.3053, allocations: 270.7 kB / 412.6 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.3053, allocations: 8.375 kB / 412.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.3053, allocations: 8.125 kB / 412.6 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.3056, allocations: 152.8 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3056, allocations: 0 / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.3057, allocations: 3.984 kB / 412.8 MB, free: 22.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.3057, allocations: 8 kB / 412.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.74e-05/0.3058, allocations: 27.98 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000412/0.3062, allocations: 370.3 kB / 413.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.3064, allocations: 107.9 kB / 413.3 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.716e-05/0.3065, allocations: 46.56 kB / 413.3 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.3065, allocations: 0 / 413.3 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001397/0.3066, allocations: 79.31 kB / 413.4 MB, free: 22.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.823e-06/0.3066, allocations: 0 / 413.4 MB, free: 22.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002989/0.3069, allocations: 137.4 kB / 413.5 MB, free: 21.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.636e-05/0.307, allocations: 132.5 kB / 413.7 MB, free: 21.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/0.3072, allocations: 269.2 kB / 413.9 MB, free: 21.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.3073, allocations: 37.64 kB / 414 MB, free: 21.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.037e-05/0.3073, allocations: 120 kB / 414.1 MB, free: 21.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.608e-05/0.3073, allocations: 23.81 kB / 414.1 MB, free: 21.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-06/0.3074, allocations: 3.938 kB / 414.1 MB, free: 21.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.649e-05/0.3074, allocations: 330.8 kB / 414.4 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.338e-05/0.3075, allocations: 23.98 kB / 414.5 MB, free: 20.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.81e-05/0.3075, allocations: 72.83 kB / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.3077, allocations: 76.22 kB / 414.6 MB, free: 20.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3077, allocations: 0 / 414.6 MB, free: 20.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001632/0.3078, allocations: 113.6 kB / 414.7 MB, free: 20.69 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.3079, allocations: 8 kB / 414.7 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3079, allocations: 64 / 414.7 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3079, allocations: 8 kB / 414.7 MB, free: 20.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.385e-05/0.308, allocations: 15.98 kB / 414.7 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.308, allocations: 4 kB / 414.7 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.162e-05/0.3081, allocations: 7.938 kB / 414.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-06/0.3081, allocations: 4 kB / 414.8 MB, free: 20.64 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.826e-05/0.3082, allocations: 145.9 kB / 414.9 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.096e-05/0.3082, allocations: 69.34 kB / 415 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.547e-05/0.3083, allocations: 21.72 kB / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3083, allocations: 0 / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3083, allocations: 3.984 kB / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3083, allocations: 7.938 kB / 415 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.3085, allocations: 217.6 kB / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3085, allocations: 3.938 kB / 415.2 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.288e-05/0.3085, allocations: 12.05 kB / 415.2 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3085, allocations: 4 kB / 415.2 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.3085, allocations: 4 kB / 415.2 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3085, allocations: 0 / 415.2 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3085, allocations: 4 kB / 415.2 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001823/0.3087, allocations: 154.4 kB / 415.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.606e-05/0.3088, allocations: 116.8 kB / 415.5 MB, free: 19.78 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.3088, allocations: 4 kB / 415.5 MB, free: 19.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.856e-05/0.3089, allocations: 11.92 kB / 415.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/0.3089, allocations: 4 kB / 415.5 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.309, allocations: 7.938 kB / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001417/0.3091, allocations: 200.5 kB / 415.7 MB, free: 19.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3091, allocations: 0 / 415.7 MB, free: 19.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000227/0.3093, allocations: 27.98 kB / 415.8 MB, free: 19.54 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.0008605/0.3102, allocations: 421.1 kB / 416.2 MB, free: 19.26 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001704/0.3104, allocations: 63.91 kB / 416.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3104, allocations: 0 / 416.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.948e-05/0.3105, allocations: 23.98 kB / 416.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.3108, allocations: 64.69 kB / 416.3 MB, free: 19.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004592/0.3113, allocations: 389.9 kB / 416.7 MB, free: 18.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001424/0.3115, allocations: 0.7244 MB / 417.4 MB, free: 17.94 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.795e-05/0.3115, allocations: 19.44 kB / 417.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3115, allocations: 0 / 417.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of Templates: time 0.003771/0.3153, allocations: 2.631 MB / 420.1 MB, free: 15.3 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