Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",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.0008545/0.0008546, allocations: 173.2 kB / 16.77 MB, free: 4.898 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.218/1.218, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007337/0.0007338, allocations: 82.42 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05792/0.05792, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003636, allocations: 12 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06327/0.06365, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.001605/0.06528, allocations: 1.548 MB / 444 MB, free: 14.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.06637, allocations: 0.9136 MB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.599e-05/0.06648, allocations: 7.938 kB / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004254/0.06691, allocations: 135.7 kB / 445.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001954/0.06712, allocations: 95.69 kB / 445.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.06753, allocations: 159.6 kB / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.0677, allocations: 163.5 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.086e-05/0.0678, allocations: 29.55 kB / 445.5 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.306e-05/0.0679, allocations: 75.64 kB / 445.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.833e-05/0.06799, allocations: 63.69 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.06801, allocations: 4 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.317e-05/0.06811, allocations: 35.97 kB / 445.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.527e-05/0.06816, allocations: 39.84 kB / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.539e-05/0.06822, allocations: 77.31 kB / 445.8 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.06838, allocations: 155.9 kB / 446 MB, free: 13.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.06839, allocations: 0 / 446 MB, free: 13.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.0684, allocations: 0 / 446 MB, free: 13.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.0684, allocations: 0 / 446 MB, free: 13.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.0004839/0.06889, allocations: 496.2 kB / 446.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.06893, allocations: 8.031 kB / 446.5 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.823e-05/0.06897, allocations: 38.75 kB / 446.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.06901, allocations: 16.75 kB / 446.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.06923, allocations: 262.8 kB / 446.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.06926, allocations: 12.31 kB / 446.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.06928, allocations: 7.938 kB / 446.8 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002463/0.06953, allocations: 166.5 kB / 447 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.06955, allocations: 0 / 447 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.06956, allocations: 4 kB / 447 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.06957, allocations: 4 kB / 447 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.885e-05/0.06966, allocations: 35.86 kB / 447 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00033/0.06999, allocations: 358.4 kB / 447.4 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.07016, allocations: 115.9 kB / 447.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.096e-05/0.07023, allocations: 38.56 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.07026, allocations: 7.984 kB / 447.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001222/0.07039, allocations: 71.33 kB / 447.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.394e-06/0.0704, allocations: 7.984 kB / 447.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002703/0.07068, allocations: 141.3 kB / 447.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.07073, allocations: 136.5 kB / 447.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.07092, allocations: 264.9 kB / 448.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.07094, allocations: 25.7 kB / 448.2 MB, free: 10.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.449e-05/0.07099, allocations: 120.4 kB / 448.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.07101, allocations: 23.8 kB / 448.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.388e-06/0.07102, allocations: 0 / 448.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.362e-05/0.07107, allocations: 330.8 kB / 448.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.837e-05/0.07113, allocations: 19.98 kB / 448.6 MB, free: 10.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.864e-05/0.07119, allocations: 66 kB / 448.7 MB, free: 9.996 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.272e-05/0.07129, allocations: 76.25 kB / 448.8 MB, free: 9.906 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.0713, allocations: 0 / 448.8 MB, free: 9.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001627/0.07147, allocations: 113.4 kB / 448.9 MB, free: 9.789 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.07149, allocations: 9.062 kB / 448.9 MB, free: 9.781 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.0715, allocations: 4 kB / 448.9 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.07151, allocations: 4 kB / 448.9 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.436e-05/0.07158, allocations: 8 kB / 448.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.07159, allocations: 4 kB / 448.9 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.389e-05/0.07166, allocations: 19.83 kB / 448.9 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.413e-06/0.07168, allocations: 7.938 kB / 448.9 MB, free: 9.734 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,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.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 7.815e-05/0.07176, allocations: 145.9 kB / 449.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.07182, allocations: 65.45 kB / 449.1 MB, free: 9.512 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.856e-05/0.07186, allocations: 25.7 kB / 449.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.07187, allocations: 7.938 kB / 449.2 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.07188, allocations: 0 / 449.2 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.07189, allocations: 3.938 kB / 449.2 MB, free: 9.477 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.07201, allocations: 225.6 kB / 449.4 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.07202, allocations: 0 / 449.4 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.305e-05/0.07204, allocations: 4 kB / 449.4 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.07205, allocations: 3.938 kB / 449.4 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.07206, allocations: 4 kB / 449.4 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.07207, allocations: 4.062 kB / 449.4 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.07208, allocations: 0 / 449.4 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001662/0.07225, allocations: 162.4 kB / 449.6 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.351e-05/0.07231, allocations: 104.9 kB / 449.7 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.07234, allocations: 7.984 kB / 449.7 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.618e-05/0.0724, allocations: 8 kB / 449.7 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.185e-05/0.07244, allocations: 11.92 kB / 449.7 MB, free: 8.859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.07245, allocations: 4 kB / 449.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001198/0.07258, allocations: 188.5 kB / 449.9 MB, free: 8.672 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07258, allocations: 0 / 449.9 MB, free: 8.672 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002147/0.0728, allocations: 31.98 kB / 449.9 MB, free: 8.641 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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.0008879/0.0737, allocations: 1.011 MB / 450.9 MB, free: 7.594 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001513/0.07386, allocations: 63.91 kB / 451 MB, free: 7.531 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.07387, allocations: 0 / 451 MB, free: 7.531 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-05/0.07393, allocations: 24.25 kB / 451 MB, free: 7.508 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.07426, allocations: 64.3 kB / 451.1 MB, free: 7.445 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.0753, allocations: 0.9895 MB / 452.1 MB, free: 6.383 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.07544, allocations: 0.7283 MB / 452.8 MB, free: 5.629 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.042e-05/0.0755, allocations: 47.41 kB / 452.8 MB, free: 5.586 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.07551, allocations: 0 / 452.8 MB, free: 5.586 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.715/2.79, allocations: 3.001 MB / 455.9 MB, free: 2.578 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,subSample.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,subSample.factor,subSample.inferFactor,subSample.u,subSample.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