Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",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.0009445/0.0009445, allocations: 173.8 kB / 16.76 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.193/1.193, 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.000651/0.000651, allocations: 98.28 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06333/0.06333, allocations: 12.19 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003895, allocations: 20 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.078/0.07841, allocations: 50.27 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.001714/0.08017, allocations: 1.564 MB / 444.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.08133, allocations: 1.023 MB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.08144, allocations: 0 / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.08171, allocations: 55.8 kB / 445.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.08189, allocations: 71.72 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004667/0.08237, allocations: 223.5 kB / 445.4 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001521/0.08253, allocations: 151.5 kB / 445.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.685e-05/0.08263, allocations: 33.55 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.226e-05/0.08273, allocations: 75.62 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.676e-05/0.08281, allocations: 63.69 kB / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.08284, allocations: 4 kB / 445.7 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.08295, allocations: 47.97 kB / 445.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.246e-05/0.08302, allocations: 47.83 kB / 445.8 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.716e-05/0.08309, allocations: 97.19 kB / 445.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.08326, allocations: 167.9 kB / 446.1 MB, free: 12.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.08328, allocations: 4 kB / 446.1 MB, free: 12.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.776e-06/0.08328, allocations: 3.938 kB / 446.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.08329, allocations: 4 kB / 446.1 MB, free: 12.91 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.0005528/0.08385, allocations: 0.4963 MB / 446.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.08389, allocations: 8.031 kB / 446.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.623e-05/0.08394, allocations: 42.73 kB / 446.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.08398, allocations: 20.66 kB / 446.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.08424, allocations: 295.4 kB / 447 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.08427, allocations: 8.375 kB / 447 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.08429, allocations: 7.938 kB / 447 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.0846, allocations: 189.1 kB / 447.2 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.08462, allocations: 3.938 kB / 447.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.08464, allocations: 4 kB / 447.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.08465, allocations: 0 / 447.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.08476, allocations: 39.98 kB / 447.2 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004541/0.08522, allocations: 470.5 kB / 447.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002042/0.08544, allocations: 146.5 kB / 447.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.126e-05/0.08553, allocations: 59.36 kB / 447.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.08557, allocations: 8 kB / 447.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001859/0.08576, allocations: 105 kB / 448 MB, free: 10.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.08577, allocations: 0 / 448 MB, free: 10.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003735/0.08615, allocations: 165.7 kB / 448.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/0.08622, allocations: 187.8 kB / 448.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.08647, allocations: 334.5 kB / 448.6 MB, free: 10.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.08649, allocations: 29.7 kB / 448.7 MB, free: 10.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.029e-05/0.08656, allocations: 124.4 kB / 448.8 MB, free: 9.883 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.08658, allocations: 23.73 kB / 448.8 MB, free: 9.859 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-06/0.0866, allocations: 4 kB / 448.8 MB, free: 9.855 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.339e-05/0.08668, allocations: 342.8 kB / 449.2 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.056e-05/0.08674, allocations: 23.98 kB / 449.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.632e-05/0.08683, allocations: 87.72 kB / 449.3 MB, free: 9.375 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.08697, allocations: 105 kB / 449.4 MB, free: 9.254 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.08698, allocations: 0 / 449.4 MB, free: 9.254 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001946/0.08718, allocations: 133.5 kB / 449.5 MB, free: 9.117 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.08721, allocations: 8.156 kB / 449.5 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.08722, allocations: 8.062 kB / 449.5 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.08724, allocations: 0 / 449.5 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.08735, allocations: 23.98 kB / 449.5 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.08737, allocations: 0 / 449.5 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.529e-05/0.08745, allocations: 15.92 kB / 449.6 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.08746, allocations: 4 kB / 449.6 MB, free: 9.059 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.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 0.0001197/0.08759, allocations: 162.4 kB / 449.7 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.002e-05/0.08766, allocations: 73.34 kB / 449.8 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.315e-05/0.08772, allocations: 29.7 kB / 449.8 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.08772, allocations: 0 / 449.8 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.08773, allocations: 4 kB / 449.8 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.08774, allocations: 3.938 kB / 449.8 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/0.0879, allocations: 245.4 kB / 450.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.08791, allocations: 7.938 kB / 450.1 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.313e-05/0.08798, allocations: 16 kB / 450.1 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.08799, allocations: 0 / 450.1 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.088, allocations: 7.984 kB / 450.1 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.08801, allocations: 4.062 kB / 450.1 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.08802, allocations: 0 / 450.1 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002163/0.08824, allocations: 183.3 kB / 450.3 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.08832, allocations: 116.8 kB / 450.4 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/0.08835, allocations: 8 kB / 450.4 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.64e-05/0.08843, allocations: 7.984 kB / 450.4 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.08848, allocations: 11.94 kB / 450.4 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.0885, allocations: 7.984 kB / 450.4 MB, free: 8.078 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001672/0.08867, allocations: 237.9 kB / 450.7 MB, free: 7.844 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08868, allocations: 0 / 450.7 MB, free: 7.844 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002363/0.08892, allocations: 39.98 kB / 450.7 MB, free: 7.805 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.001053/0.08998, allocations: 1.036 MB / 451.7 MB, free: 6.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001987/0.09019, allocations: 84.03 kB / 451.8 MB, free: 6.648 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.0902, allocations: 0 / 451.8 MB, free: 6.648 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.918e-05/0.09028, allocations: 31.98 kB / 451.9 MB, free: 6.617 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000387/0.09067, allocations: 76.36 kB / 451.9 MB, free: 6.543 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.09203, allocations: 1.257 MB / 453.2 MB, free: 5.203 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001566/0.0922, allocations: 0.7518 MB / 453.9 MB, free: 4.426 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.87e-05/0.09228, allocations: 55.42 kB / 454 MB, free: 4.375 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.09229, allocations: 0 / 454 MB, free: 4.375 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.804/2.896, allocations: 3.513 MB / 457.5 MB, free: 0.8555 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.u,hold.y,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.u,shiftSample.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.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,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.realToInteger.u,table.realToInteger.y,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],table.y,time