Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007883/0.0007883, allocations: 175.5 kB / 16.77 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.204/1.204, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006679/0.0006679, allocations: 89.42 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.0602/0.0602, allocations: 12.21 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.000385, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07901/0.07941, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.001746/0.0812, allocations: 1.575 MB / 444.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.08232, allocations: 0.9564 MB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.612e-05/0.08242, allocations: 0 / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004341/0.08287, allocations: 143.6 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.08306, allocations: 87.7 kB / 445.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003502/0.08342, allocations: 167.6 kB / 445.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.08359, allocations: 179.4 kB / 445.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.426e-05/0.08369, allocations: 29.66 kB / 445.6 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.08e-05/0.08378, allocations: 79.62 kB / 445.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.703e-05/0.08387, allocations: 63.7 kB / 445.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.08389, allocations: 4 kB / 445.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.776e-05/0.08399, allocations: 43.91 kB / 445.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.785e-05/0.08404, allocations: 35.84 kB / 445.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.003e-05/0.08411, allocations: 93.3 kB / 445.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001405/0.08426, allocations: 152 kB / 446.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.08427, allocations: 0 / 446.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.08427, allocations: 0 / 446.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.08428, allocations: 0 / 446.1 MB, free: 12.93 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.0005191/0.08481, allocations: 488.2 kB / 446.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.08485, allocations: 12.03 kB / 446.6 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.812e-05/0.0849, allocations: 38.73 kB / 446.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/0.08494, allocations: 28.66 kB / 446.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.0852, allocations: 274.7 kB / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.08522, allocations: 4.375 kB / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.08524, allocations: 11.94 kB / 446.9 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.08554, allocations: 180.2 kB / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.08556, allocations: 0 / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.08558, allocations: 0 / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.08559, allocations: 15.88 kB / 447.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.584e-05/0.08568, allocations: 31.98 kB / 447.1 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000357/0.08605, allocations: 387.1 kB / 447.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.08624, allocations: 130.5 kB / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.166e-05/0.08632, allocations: 63.36 kB / 447.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.08635, allocations: 3.984 kB / 447.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/0.08647, allocations: 67.39 kB / 447.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.08648, allocations: 4 kB / 447.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002996/0.08679, allocations: 157.3 kB / 447.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.08685, allocations: 158.2 kB / 448.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.08705, allocations: 280.8 kB / 448.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.08707, allocations: 29.7 kB / 448.4 MB, free: 10.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.937e-05/0.08713, allocations: 120.8 kB / 448.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.08715, allocations: 19.8 kB / 448.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.08716, allocations: 0 / 448.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.292e-05/0.08722, allocations: 326.8 kB / 448.9 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.35e-05/0.08728, allocations: 31.92 kB / 448.9 MB, free: 9.809 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.599e-05/0.08735, allocations: 83.72 kB / 449 MB, free: 9.699 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.08746, allocations: 89.88 kB / 449.1 MB, free: 9.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.08747, allocations: 4.031 kB / 449.1 MB, free: 9.586 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001693/0.08765, allocations: 125.4 kB / 449.2 MB, free: 9.457 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.08767, allocations: 5.875 kB / 449.2 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.08768, allocations: 4 kB / 449.2 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.08769, allocations: 4 kB / 449.2 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.87e-05/0.08777, allocations: 15.92 kB / 449.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.08778, allocations: 4 kB / 449.2 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.706e-05/0.08785, allocations: 23.97 kB / 449.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.08787, allocations: 4 kB / 449.2 MB, free: 9.398 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,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.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 8.26e-05/0.08795, allocations: 150.8 kB / 449.4 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.96e-05/0.08803, allocations: 73.44 kB / 449.5 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.864e-05/0.08807, allocations: 25.7 kB / 449.5 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.08808, allocations: 4 kB / 449.5 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.08809, allocations: 4 kB / 449.5 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.0881, allocations: 8.031 kB / 449.5 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.08823, allocations: 229.6 kB / 449.7 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.08824, allocations: 0 / 449.7 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.617e-05/0.08827, allocations: 11.92 kB / 449.7 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.08827, allocations: 4 kB / 449.7 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.08829, allocations: 4 kB / 449.7 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.0883, allocations: 4 kB / 449.8 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.0883, allocations: 0 / 449.8 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001856/0.08849, allocations: 183.1 kB / 449.9 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.165e-05/0.08856, allocations: 116.8 kB / 450 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.628e-05/0.0886, allocations: 7.984 kB / 450.1 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.193e-05/0.08866, allocations: 4 kB / 450.1 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.26e-05/0.0887, allocations: 7.938 kB / 450.1 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.08872, allocations: 7.984 kB / 450.1 MB, free: 8.461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000128/0.08885, allocations: 204.5 kB / 450.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08886, allocations: 0 / 450.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002223/0.08909, allocations: 28 kB / 450.3 MB, free: 8.238 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.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.0009674/0.09006, allocations: 1.01 MB / 451.3 MB, free: 7.188 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001587/0.09023, allocations: 75.91 kB / 451.4 MB, free: 7.113 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.09024, allocations: 0 / 451.4 MB, free: 7.113 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.494e-05/0.0903, allocations: 27.92 kB / 451.4 MB, free: 7.086 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000378/0.09069, allocations: 76.97 kB / 451.5 MB, free: 7.008 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.09184, allocations: 1.075 MB / 452.6 MB, free: 5.852 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001361/0.09199, allocations: 0.7323 MB / 453.3 MB, free: 5.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.979e-05/0.09207, allocations: 55.41 kB / 453.3 MB, free: 5.035 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.09207, allocations: 0 / 453.3 MB, free: 5.035 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.818/2.91, allocations: 3.197 MB / 456.5 MB, free: 1.836 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.u,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,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