Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 196.3 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000788/0.0007883, allocations: 95.69 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002765/0.0002766, allocations: 8 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2461, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.001828/0.248, allocations: 1.611 MB / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.2494, allocations: 1.134 MB / 410.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.218e-05/0.2495, allocations: 7.938 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004362/0.25, allocations: 136.8 kB / 411 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.2503, allocations: 127.6 kB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004225/0.2507, allocations: 176 kB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.2509, allocations: 179.4 kB / 411.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.706e-05/0.251, allocations: 30.48 kB / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.435e-05/0.2511, allocations: 70.14 kB / 411.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.127e-05/0.2512, allocations: 67.69 kB / 411.7 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.2512, allocations: 4 kB / 411.7 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.741e-05/0.2513, allocations: 51.91 kB / 411.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.204e-05/0.2513, allocations: 35.84 kB / 411.7 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.814e-05/0.2514, allocations: 89.25 kB / 411.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.2516, allocations: 172.8 kB / 412 MB, free: 23.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2516, allocations: 3.031 kB / 412 MB, free: 23.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2516, allocations: 0 / 412 MB, free: 23.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.566e-06/0.2516, allocations: 0 / 412 MB, free: 23.8 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004882/0.2521, allocations: 496.3 kB / 412.5 MB, free: 23.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.2521, allocations: 8.031 kB / 412.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.101e-05/0.2522, allocations: 42.75 kB / 412.5 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.609e-05/0.2522, allocations: 24.64 kB / 412.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/0.2525, allocations: 282.6 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.2525, allocations: 8.359 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.2525, allocations: 11.94 kB / 412.9 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.2528, allocations: 172.4 kB / 413 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.2528, allocations: 0 / 413 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.2528, allocations: 0 / 413 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2528, allocations: 4 kB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.494e-05/0.2529, allocations: 39.91 kB / 413.1 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003446/0.2533, allocations: 383.1 kB / 413.4 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.2534, allocations: 134.5 kB / 413.6 MB, free: 22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.106e-05/0.2535, allocations: 55.42 kB / 413.6 MB, free: 21.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.2535, allocations: 3.938 kB / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001245/0.2537, allocations: 75.39 kB / 413.7 MB, free: 21.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.2537, allocations: 0 / 413.7 MB, free: 21.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.000312/0.254, allocations: 157.3 kB / 413.9 MB, free: 21.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.2541, allocations: 158.2 kB / 414 MB, free: 21.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.2543, allocations: 286.5 kB / 414.3 MB, free: 21.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.2543, allocations: 30.08 kB / 414.3 MB, free: 21.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.336e-05/0.2544, allocations: 124.4 kB / 414.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.589e-05/0.2544, allocations: 15.75 kB / 414.5 MB, free: 21.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-06/0.2544, allocations: 4 kB / 414.5 MB, free: 21.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.11e-05/0.2545, allocations: 330.8 kB / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.414e-05/0.2545, allocations: 23.98 kB / 414.8 MB, free: 20.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.056e-05/0.2546, allocations: 87.22 kB / 414.9 MB, free: 20.56 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001178/0.2547, allocations: 93.91 kB / 415 MB, free: 20.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2547, allocations: 4 kB / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001783/0.2549, allocations: 121.4 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/0.2549, allocations: 4 kB / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.255, allocations: 4 kB / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.255, allocations: 0 / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.43e-05/0.255, allocations: 19.98 kB / 415.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.255, allocations: 8.125 kB / 415.1 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.732e-05/0.2551, allocations: 19.78 kB / 415.2 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.2551, allocations: 7.938 kB / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * 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.52e-05/0.2552, allocations: 150.1 kB / 415.3 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.649e-05/0.2553, allocations: 77.28 kB / 415.4 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.186e-05/0.2554, allocations: 25.7 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.2554, allocations: 4 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.2554, allocations: 4.094 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2554, allocations: 3.938 kB / 415.4 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.2556, allocations: 233.6 kB / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2556, allocations: 4 kB / 415.7 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.564e-05/0.2556, allocations: 11.92 kB / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2556, allocations: 0 / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.2556, allocations: 4 kB / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2556, allocations: 0 / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2556, allocations: 0 / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002092/0.2558, allocations: 183.3 kB / 415.9 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.841e-05/0.2559, allocations: 108.9 kB / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.2559, allocations: 8 kB / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.174e-05/0.256, allocations: 4 kB / 416 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.834e-05/0.256, allocations: 11.92 kB / 416 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.2561, allocations: 11.94 kB / 416 MB, free: 19.31 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001493/0.2562, allocations: 202 kB / 416.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2562, allocations: 0 / 416.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002319/0.2565, allocations: 39.92 kB / 416.2 MB, free: 19.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.001084/0.2576, allocations: 1.015 MB / 417.3 MB, free: 18.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000166/0.2577, allocations: 79.84 kB / 417.3 MB, free: 18.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2577, allocations: 0 / 417.3 MB, free: 18.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.792e-05/0.2578, allocations: 32.28 kB / 417.4 MB, free: 18.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.2582, allocations: 82.78 kB / 417.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.2595, allocations: 1.093 MB / 418.5 MB, free: 16.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001678/0.2597, allocations: 0.74 MB / 419.3 MB, free: 16.04 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.015e-05/0.2597, allocations: 51.42 kB / 419.3 MB, free: 15.99 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2597, allocations: 0 / 419.3 MB, free: 15.99 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.137/3.397, allocations: 3.279 MB / 422.6 MB, free: 12.71 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.u,backSample1.y,backSample1.y_start,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