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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001423, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000912/0.0009126, allocations: 96.34 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000305/0.0003052, allocations: 11.92 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2444, allocations: 51.28 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00204/0.2465, allocations: 1.594 MB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.248, allocations: 1.113 MB / 410.8 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.2481, allocations: 4.531 kB / 410.8 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005592/0.2487, allocations: 141.2 kB / 411 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002813/0.249, allocations: 127.6 kB / 411.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004382/0.2494, allocations: 173 kB / 411.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001905/0.2496, allocations: 175.4 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.2497, allocations: 22.22 kB / 411.5 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.807e-05/0.2498, allocations: 67.62 kB / 411.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.02e-05/0.2499, allocations: 64.64 kB / 411.6 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.25, allocations: 4 kB / 411.6 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.2501, allocations: 47.81 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.522e-05/0.2501, allocations: 39.84 kB / 411.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.906e-05/0.2502, allocations: 77.31 kB / 411.8 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.2504, allocations: 156.9 kB / 411.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2504, allocations: 4 kB / 411.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.2504, allocations: 0 / 411.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.2504, allocations: 3.938 kB / 411.9 MB, free: 23.92 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.0005891/0.251, allocations: 496.3 kB / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.2511, allocations: 9.844 kB / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.164e-05/0.2511, allocations: 34.75 kB / 412.4 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.039e-05/0.2512, allocations: 16.75 kB / 412.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.2514, allocations: 274.7 kB / 412.7 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.2514, allocations: 12.25 kB / 412.7 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.2515, allocations: 15.94 kB / 412.8 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002828/0.2518, allocations: 142.7 kB / 412.9 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2518, allocations: 0 / 412.9 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.2518, allocations: 8 kB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2518, allocations: 4 kB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.026e-05/0.2519, allocations: 35.91 kB / 412.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000398/0.2523, allocations: 362.4 kB / 413.3 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.2525, allocations: 107.9 kB / 413.4 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.468e-05/0.2526, allocations: 42.56 kB / 413.4 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.2526, allocations: 0 / 413.4 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001324/0.2527, allocations: 79.33 kB / 413.5 MB, free: 22.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.2528, allocations: 3.938 kB / 413.5 MB, free: 22.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002968/0.2531, allocations: 145.6 kB / 413.7 MB, free: 21.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.2531, allocations: 132.5 kB / 413.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.2533, allocations: 273.2 kB / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.2534, allocations: 33.7 kB / 414.1 MB, free: 21.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.276e-05/0.2534, allocations: 116 kB / 414.2 MB, free: 21.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.2534, allocations: 23.73 kB / 414.2 MB, free: 21.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/0.2534, allocations: 4 kB / 414.2 MB, free: 21.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.431e-05/0.2535, allocations: 326.8 kB / 414.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.012e-05/0.2536, allocations: 19.98 kB / 414.6 MB, free: 20.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.764e-05/0.2536, allocations: 70 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.2537, allocations: 76.28 kB / 414.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2538, allocations: 0 / 414.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001613/0.2539, allocations: 121.4 kB / 414.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.2539, allocations: 4 kB / 414.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2539, allocations: 0 / 414.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.254, allocations: 4 kB / 414.8 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.074e-05/0.254, allocations: 8 kB / 414.9 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.2541, allocations: 11.92 kB / 414.9 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.327e-05/0.2541, allocations: 11.94 kB / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-06/0.2541, allocations: 4 kB / 414.9 MB, free: 20.62 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 9.652e-05/0.2542, allocations: 142 kB / 415 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.098e-05/0.2543, allocations: 69.34 kB / 415.1 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.317e-05/0.2544, allocations: 21.72 kB / 415.1 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2544, allocations: 0 / 415.1 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.2544, allocations: 4 kB / 415.1 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2544, allocations: 7.922 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.2545, allocations: 221.7 kB / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.2545, allocations: 0 / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.598e-05/0.2546, allocations: 12.06 kB / 415.4 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2546, allocations: 7.875 kB / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.2546, allocations: 3.984 kB / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2546, allocations: 4 kB / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2546, allocations: 0 / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001867/0.2548, allocations: 154.4 kB / 415.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/0.2549, allocations: 120.8 kB / 415.6 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.2549, allocations: 4.062 kB / 415.6 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.865e-05/0.255, allocations: 8 kB / 415.6 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.14e-05/0.255, allocations: 15.91 kB / 415.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.255, allocations: 4 kB / 415.7 MB, free: 19.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001395/0.2552, allocations: 200.5 kB / 415.9 MB, free: 19.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2552, allocations: 3.938 kB / 415.9 MB, free: 19.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002244/0.2554, allocations: 31.98 kB / 415.9 MB, free: 19.5 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.00112/0.2565, allocations: 0.9826 MB / 416.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001759/0.2567, allocations: 67.98 kB / 416.9 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2567, allocations: 0 / 416.9 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.172e-05/0.2568, allocations: 31.92 kB / 417 MB, free: 18.53 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.2572, allocations: 72.56 kB / 417 MB, free: 18.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.2584, allocations: 1.023 MB / 418.1 MB, free: 17.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/0.2586, allocations: 0.7283 MB / 418.8 MB, free: 16.6 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.174e-05/0.2587, allocations: 51.41 kB / 418.8 MB, free: 16.55 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2587, allocations: 0 / 418.8 MB, free: 16.55 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.048/3.307, allocations: 3.09 MB / 421.9 MB, free: 13.46 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > 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/jenkins1/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) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.isCsvExt,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.timeScaled,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.n,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time