Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample",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.0008083/0.0008083, allocations: 171.9 kB / 16.77 MB, free: 4.902 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.189/1.189, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.0007308/0.0007309, allocations: 86.41 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.06427/0.06427, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003884/0.0003887, allocations: 19.94 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07877/0.07917, allocations: 50.28 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample): time 0.001987/0.0812, allocations: 1.544 MB / 444 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.08258, allocations: 0.9915 MB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.08274, allocations: 0 / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000294/0.08304, allocations: 59.8 kB / 445.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002346/0.08329, allocations: 79.73 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006318/0.08394, allocations: 207.5 kB / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.08414, allocations: 151.6 kB / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.08425, allocations: 25.56 kB / 445.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.08438, allocations: 67.62 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.646e-05/0.08449, allocations: 63.69 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.08451, allocations: 4 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.08465, allocations: 51.97 kB / 445.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.102e-05/0.08472, allocations: 47.83 kB / 445.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.664e-05/0.08479, allocations: 85.25 kB / 445.9 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.08498, allocations: 167.9 kB / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.08499, allocations: 4 kB / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.085, allocations: 0 / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.08501, 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.0005335/0.08555, allocations: 0.4962 MB / 446.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.0856, allocations: 12.03 kB / 446.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.059e-05/0.08565, allocations: 38.73 kB / 446.6 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.08569, allocations: 24.66 kB / 446.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.08596, allocations: 283.6 kB / 446.9 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.08599, allocations: 384 / 446.9 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.08601, allocations: 19.81 kB / 446.9 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.0863, allocations: 167.5 kB / 447 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.08632, allocations: 0 / 447 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.08634, allocations: 0 / 447 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.08635, allocations: 7.984 kB / 447.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.778e-05/0.08645, allocations: 35.92 kB / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003922/0.08686, allocations: 390.3 kB / 447.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002096/0.08708, allocations: 119.9 kB / 447.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.101e-05/0.08716, allocations: 46.56 kB / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.08719, allocations: 7.922 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001763/0.08737, allocations: 75.39 kB / 447.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.134e-06/0.08739, allocations: 0 / 447.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003453/0.08774, allocations: 149.4 kB / 447.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.0878, allocations: 162.2 kB / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002628/0.08807, allocations: 334.5 kB / 448.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.0881, allocations: 29.7 kB / 448.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.468e-05/0.08817, allocations: 132.4 kB / 448.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.08819, allocations: 11.81 kB / 448.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.191e-06/0.0882, allocations: 4 kB / 448.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.256e-05/0.08827, allocations: 330.8 kB / 448.8 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.011e-05/0.08834, allocations: 23.98 kB / 448.9 MB, free: 9.836 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.018e-05/0.08842, allocations: 82.84 kB / 448.9 MB, free: 9.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.08856, allocations: 84.47 kB / 449 MB, free: 9.633 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.08857, allocations: 4 kB / 449 MB, free: 9.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001929/0.08877, allocations: 125.4 kB / 449.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.08879, allocations: 4 kB / 449.2 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.08881, allocations: 7.938 kB / 449.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.08882, allocations: 0 / 449.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.869e-05/0.08893, allocations: 23.92 kB / 449.2 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.08894, allocations: 0 / 449.2 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.713e-05/0.08902, allocations: 19.78 kB / 449.2 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.08904, allocations: 7.984 kB / 449.2 MB, free: 9.438 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,superSample.y,superSample.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 0.0001157/0.08916, allocations: 154.5 kB / 449.4 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.257e-05/0.08924, allocations: 69.36 kB / 449.4 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.178e-05/0.0893, allocations: 29.7 kB / 449.5 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.08931, allocations: 0 / 449.5 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.08932, allocations: 0 / 449.5 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.08933, allocations: 11.92 kB / 449.5 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.08948, allocations: 237.6 kB / 449.7 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.08949, allocations: 0 / 449.7 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.964e-05/0.08956, allocations: 8 kB / 449.7 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.08957, allocations: 0 / 449.7 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.08959, allocations: 19.98 kB / 449.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.0896, allocations: 0 / 449.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.0896, allocations: 0 / 449.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/0.08982, allocations: 166.4 kB / 449.9 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.071e-05/0.0899, allocations: 116.8 kB / 450 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.08993, allocations: 4 kB / 450 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.201e-05/0.09, allocations: 4 kB / 450 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.36e-05/0.09005, allocations: 23.86 kB / 450 MB, free: 8.504 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.09007, allocations: 4 kB / 450 MB, free: 8.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000176/0.09025, allocations: 241.9 kB / 450.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09026, allocations: 0 / 450.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002407/0.09051, 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,superSample.y,sample.y,superSample.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.001089/0.0916, allocations: 1.008 MB / 451.3 MB, free: 7.184 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001909/0.0918, allocations: 67.91 kB / 451.4 MB, free: 7.117 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.09182, allocations: 0 / 451.4 MB, free: 7.117 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.009e-05/0.09189, allocations: 32.17 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.0003745/0.09228, allocations: 60.75 kB / 451.5 MB, free: 7.027 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.09376, allocations: 1.198 MB / 452.7 MB, free: 5.758 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.09396, allocations: 0.7477 MB / 453.4 MB, free: 4.984 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.33e-05/0.09405, allocations: 55.42 kB / 453.5 MB, free: 4.934 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09406, allocations: 0 / 453.5 MB, free: 4.934 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.774/2.868, allocations: 3.418 MB / 456.9 MB, free: 1.512 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,superSample.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,superSample.factor,superSample.inferFactor,superSample.u,superSample.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