Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",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.001195/0.001195, allocations: 173.1 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.15/1.15, 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.0006748/0.0006748, allocations: 97.16 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.05684/0.05684, allocations: 12.18 MB / 331.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004018/0.0004018, allocations: 12 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06/0.06044, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.001525/0.06199, allocations: 1.548 MB / 444 MB, free: 14.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.06305, allocations: 0.9331 MB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.06317, allocations: 4 kB / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004236/0.06361, allocations: 135.6 kB / 445.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.06382, allocations: 99.69 kB / 445.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.06421, allocations: 159.6 kB / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000161/0.06438, allocations: 159.5 kB / 445.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.06449, allocations: 29.53 kB / 445.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.0646, allocations: 75.62 kB / 445.6 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.865e-05/0.06469, allocations: 67.69 kB / 445.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.06472, allocations: 4 kB / 445.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.495e-05/0.06482, allocations: 31.98 kB / 445.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.611e-05/0.06487, allocations: 43.83 kB / 445.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.635e-05/0.06493, allocations: 77.31 kB / 445.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.06508, allocations: 148 kB / 446 MB, free: 13.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.06509, allocations: 0 / 446 MB, free: 13.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.0651, allocations: 0 / 446 MB, free: 13.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.0651, allocations: 0 / 446 MB, free: 13.03 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.0004549/0.06556, allocations: 0.4885 MB / 446.5 MB, free: 12.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.0656, allocations: 8.031 kB / 446.5 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.724e-05/0.06563, allocations: 38.75 kB / 446.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.381e-05/0.06567, allocations: 16.75 kB / 446.5 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.06588, allocations: 258.9 kB / 446.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.0659, allocations: 12.31 kB / 446.8 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.439e-05/0.06592, allocations: 11.92 kB / 446.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.06616, allocations: 166.5 kB / 447 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.06618, allocations: 3.938 kB / 447 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.0662, allocations: 0 / 447 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.06621, allocations: 4 kB / 447 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.697e-05/0.06629, allocations: 31.98 kB / 447 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003144/0.06661, allocations: 362.4 kB / 447.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001536/0.06677, allocations: 107.9 kB / 447.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.995e-05/0.06684, allocations: 42.56 kB / 447.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.06687, allocations: 4 kB / 447.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001142/0.06699, allocations: 83.31 kB / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.067, allocations: 4 kB / 447.6 MB, free: 11.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002605/0.06727, allocations: 141.3 kB / 447.8 MB, free: 11.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.06731, allocations: 132.5 kB / 447.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.0675, allocations: 268.9 kB / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.06752, allocations: 25.7 kB / 448.2 MB, free: 10.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.253e-05/0.06757, allocations: 120.1 kB / 448.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.591e-05/0.06759, allocations: 20.12 kB / 448.3 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-06/0.0676, allocations: 4 kB / 448.3 MB, free: 10.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.963e-05/0.06764, allocations: 330.8 kB / 448.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.74e-05/0.06769, allocations: 16 kB / 448.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.928e-05/0.06776, allocations: 69.98 kB / 448.7 MB, free: 9.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.329e-05/0.06786, allocations: 72.27 kB / 448.8 MB, free: 9.895 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.06787, allocations: 0 / 448.8 MB, free: 9.895 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001565/0.06803, allocations: 117.4 kB / 448.9 MB, free: 9.773 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.06805, allocations: 4.125 kB / 448.9 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.06806, allocations: 4 kB / 448.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.06807, allocations: 7.984 kB / 448.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.09e-05/0.06814, allocations: 8 kB / 448.9 MB, free: 9.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.06815, allocations: 7.938 kB / 448.9 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.205e-05/0.06822, allocations: 15.84 kB / 448.9 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.06823, allocations: 4 kB / 449 MB, free: 9.723 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,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 (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.619e-05/0.06831, allocations: 150.4 kB / 449.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.599e-05/0.06837, allocations: 69.44 kB / 449.2 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.444e-05/0.06843, allocations: 29.69 kB / 449.2 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.06843, allocations: 0 / 449.2 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.06844, allocations: 0 / 449.2 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.06845, allocations: 3.938 kB / 449.2 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.06857, allocations: 221.6 kB / 449.4 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.06858, allocations: 0 / 449.4 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.356e-05/0.0686, allocations: 8.297 kB / 449.4 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.06861, allocations: 0 / 449.4 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.06862, allocations: 8 kB / 449.4 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.06863, allocations: 4.062 kB / 449.4 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.06864, allocations: 3.938 kB / 449.4 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001667/0.06881, allocations: 158.4 kB / 449.6 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.387e-05/0.06887, allocations: 104.9 kB / 449.7 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.0689, allocations: 8 kB / 449.7 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.616e-05/0.06896, allocations: 11.98 kB / 449.7 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.055e-05/0.069, allocations: 3.938 kB / 449.7 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.06901, allocations: 4 kB / 449.7 MB, free: 8.844 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001219/0.06914, allocations: 200.5 kB / 449.9 MB, free: 8.648 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.06915, allocations: 0 / 449.9 MB, free: 8.648 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002103/0.06936, allocations: 20 kB / 449.9 MB, free: 8.629 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,shiftSample1.y,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 (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.0009001/0.07027, allocations: 1.012 MB / 451 MB, free: 7.582 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001541/0.07043, allocations: 63.91 kB / 451 MB, free: 7.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.07044, allocations: 0 / 451 MB, free: 7.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.341e-05/0.0705, allocations: 28.23 kB / 451 MB, free: 7.492 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.07086, allocations: 68.23 kB / 451.1 MB, free: 7.426 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.07193, allocations: 0.9934 MB / 452.1 MB, free: 6.359 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.07205, allocations: 0.7244 MB / 452.8 MB, free: 5.609 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.097e-05/0.07211, allocations: 47.42 kB / 452.9 MB, free: 5.566 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.07212, allocations: 3.938 kB / 452.9 MB, free: 5.562 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.895/2.967, allocations: 3.001 MB / 455.9 MB, free: 2.555 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,shiftSample1.y Variables in the result: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