Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.0008549/0.0008549, allocations: 174.2 kB / 16.77 MB, free: 4.922 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.191/1.191, allocations: 205.4 MB / 222.9 MB, free: 8.93 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.0006891/0.0006891, allocations: 84.8 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.06447/0.06447, allocations: 12.2 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003911/0.0003912, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07738/0.07779, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.002018/0.07985, allocations: 1.54 MB / 444 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.08124, allocations: 0.9954 MB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.08144, allocations: 3.938 kB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002786/0.08173, allocations: 59.8 kB / 445.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002092/0.08195, allocations: 67.8 kB / 445.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006002/0.08257, allocations: 215.5 kB / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002153/0.08279, allocations: 147.5 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.08291, allocations: 29.55 kB / 445.5 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.08305, allocations: 59.7 kB / 445.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.151e-05/0.08315, allocations: 67.69 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.08318, allocations: 4 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.08332, allocations: 51.95 kB / 445.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.364e-05/0.08339, allocations: 43.84 kB / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.806e-05/0.08346, allocations: 93.23 kB / 445.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001936/0.08366, allocations: 167.9 kB / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.08367, allocations: 0 / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08368, allocations: 0 / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.08369, allocations: 0 / 446 MB, free: 13 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.0005742/0.08427, allocations: 0.5 MB / 446.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.08432, allocations: 8.031 kB / 446.5 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.278e-05/0.08437, allocations: 46.73 kB / 446.6 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.098e-05/0.08442, allocations: 24.66 kB / 446.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002777/0.08471, allocations: 279.6 kB / 446.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.08473, allocations: 8.312 kB / 446.9 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.08476, allocations: 11.94 kB / 446.9 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.08507, allocations: 163.5 kB / 447 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.08509, allocations: 0 / 447 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.08511, allocations: 0 / 447 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.08512, allocations: 3.938 kB / 447.1 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.08523, allocations: 43.91 kB / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004483/0.08568, allocations: 386.3 kB / 447.5 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.08589, allocations: 115.9 kB / 447.6 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.708e-05/0.08598, allocations: 54.5 kB / 447.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.08601, allocations: 7.984 kB / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001752/0.08619, allocations: 71.39 kB / 447.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.512e-06/0.0862, allocations: 0 / 447.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003334/0.08654, allocations: 153.6 kB / 447.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.057e-05/0.08661, allocations: 158.2 kB / 448 MB, free: 10.72 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.08686, allocations: 334.5 kB / 448.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.08689, allocations: 33.69 kB / 448.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.717e-05/0.08695, allocations: 124.1 kB / 448.5 MB, free: 10.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.08697, allocations: 11.81 kB / 448.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.08699, allocations: 4 kB / 448.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.17e-05/0.08704, allocations: 334.8 kB / 448.8 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.85e-05/0.08711, allocations: 27.98 kB / 448.9 MB, free: 9.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.82e-05/0.08719, allocations: 82.8 kB / 449 MB, free: 9.734 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.08732, allocations: 88.45 kB / 449 MB, free: 9.633 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.08733, allocations: 0 / 449 MB, free: 9.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001889/0.08752, allocations: 125.4 kB / 449.2 MB, free: 9.504 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.08755, allocations: 4 kB / 449.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.08756, allocations: 0 / 449.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.08758, allocations: 7.938 kB / 449.2 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.652e-05/0.08768, allocations: 24.05 kB / 449.2 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.08769, allocations: 4 kB / 449.2 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.211e-05/0.08777, allocations: 19.78 kB / 449.2 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.08779, allocations: 4 kB / 449.2 MB, free: 9.441 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,table.y,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 9.197e-05/0.08788, allocations: 154.5 kB / 449.4 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.08795, allocations: 65.36 kB / 449.4 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.304e-05/0.088, allocations: 25.7 kB / 449.5 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.08801, allocations: 8.062 kB / 449.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.08802, allocations: 0 / 449.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.08803, allocations: 7.922 kB / 449.5 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001303/0.08816, allocations: 237.6 kB / 449.7 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.08817, allocations: 0 / 449.7 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.905e-05/0.08824, allocations: 12 kB / 449.7 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.08825, allocations: 0 / 449.7 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.08826, allocations: 11.98 kB / 449.7 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.08827, allocations: 0 / 449.7 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.08827, allocations: 3.938 kB / 449.7 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002007/0.08848, allocations: 174.3 kB / 449.9 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.198e-05/0.08856, allocations: 116.8 kB / 450 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.0886, allocations: 0 / 450 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.297e-05/0.08866, allocations: 4 kB / 450 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.08872, allocations: 15.92 kB / 450 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.08874, allocations: 8.062 kB / 450 MB, free: 8.508 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001661/0.08891, allocations: 245.9 kB / 450.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08892, allocations: 4 kB / 450.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000239/0.08916, allocations: 35.91 kB / 450.3 MB, free: 8.227 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,table.y,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.001001/0.09017, allocations: 1.004 MB / 451.3 MB, free: 7.188 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001846/0.09037, allocations: 67.91 kB / 451.4 MB, free: 7.121 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.09038, allocations: 0 / 451.4 MB, free: 7.121 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.687e-05/0.09045, allocations: 31.92 kB / 451.4 MB, free: 7.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.09083, allocations: 56.73 kB / 451.5 MB, free: 7.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.09225, allocations: 1.206 MB / 452.7 MB, free: 5.758 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.09243, allocations: 0.7439 MB / 453.4 MB, free: 4.988 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.179e-05/0.09252, allocations: 55.42 kB / 453.5 MB, free: 4.938 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.09253, allocations: 0 / 453.5 MB, free: 4.938 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.82/2.912, allocations: 3.415 MB / 456.9 MB, free: 1.52 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.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