Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.ClockSignals.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_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.0009611/0.0009611, allocations: 176.8 kB / 16.77 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.196/1.196, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007055/0.0007055, allocations: 95.66 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05733/0.05733, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003636, allocations: 15.98 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06386/0.06424, allocations: 50.28 MB / 442.5 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample): time 0.00126/0.06553, allocations: 1.242 MB / 443.7 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005909/0.06614, allocations: 0.5 MB / 444.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.784e-05/0.06622, allocations: 3.938 kB / 444.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.831e-05/0.06626, allocations: 0 / 444.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.06637, allocations: 11.92 kB / 444.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001919/0.06657, allocations: 43.89 kB / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.388e-05/0.06665, allocations: 39.86 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.951e-05/0.06674, allocations: 19.98 kB / 444.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.224e-05/0.06682, allocations: 27.84 kB / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.441e-05/0.06688, allocations: 11.94 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.0669, allocations: 4 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.101e-05/0.06692, allocations: 3.938 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.803e-05/0.06695, allocations: 7.984 kB / 444.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.917e-05/0.06698, allocations: 49.52 kB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.622e-05/0.06705, allocations: 51.8 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.06705, allocations: 0 / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.06706, allocations: 0 / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.06707, allocations: 0 / 444.5 MB, free: 14.52 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003071/0.06738, allocations: 367.5 kB / 444.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.06742, allocations: 8.031 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.31e-05/0.06745, allocations: 30.75 kB / 444.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.191e-05/0.06747, allocations: 8.844 kB / 444.9 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.06762, allocations: 200.1 kB / 445.1 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-06/0.06764, allocations: 4.375 kB / 445.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.06766, allocations: 8.375 kB / 445.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.06788, allocations: 121.1 kB / 445.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.0679, allocations: 0 / 445.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.163e-06/0.06791, allocations: 0 / 445.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.06792, allocations: 8 kB / 445.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.849e-05/0.06799, allocations: 23.92 kB / 445.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002036/0.0682, allocations: 261.7 kB / 445.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.334e-05/0.06828, allocations: 49.2 kB / 445.6 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.141e-05/0.06832, allocations: 29.64 kB / 445.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.06835, allocations: 0 / 445.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.306e-05/0.06836, allocations: 34.56 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.06837, allocations: 0 / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002027/0.06858, allocations: 81.52 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.517e-05/0.06861, allocations: 77.11 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.509e-05/0.06869, allocations: 134.2 kB / 445.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.161e-06/0.06871, allocations: 25.7 kB / 445.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.654e-05/0.06874, allocations: 92.38 kB / 446 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.969e-06/0.06875, allocations: 8 kB / 446 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-06/0.06876, allocations: 0 / 446 MB, free: 12.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.644e-05/0.0688, allocations: 314.8 kB / 446.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.588e-05/0.06884, allocations: 11.98 kB / 446.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.255e-05/0.06888, allocations: 21.72 kB / 446.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.62e-05/0.06896, allocations: 37.7 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.06896, allocations: 4 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.546e-05/0.06906, allocations: 61.53 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.06908, allocations: 7.984 kB / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.06909, allocations: 8 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.06911, allocations: 0 / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.984e-05/0.06917, allocations: 8 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.06919, allocations: 0 / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.284e-05/0.06922, allocations: 4 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.06923, allocations: 3.984 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.822e-05/0.06929, allocations: 126.4 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.266e-05/0.06933, allocations: 37.61 kB / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.257e-05/0.06936, allocations: 23.84 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.06937, allocations: 0 / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.06938, allocations: 0 / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.06938, allocations: 0 / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.06949, allocations: 169.6 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.0695, allocations: 3.938 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.281e-05/0.06955, allocations: 8 kB / 446.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.06956, allocations: 4 kB / 446.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.551e-06/0.06957, allocations: 0 / 446.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.06957, allocations: 4 kB / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.06958, allocations: 7.938 kB / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.0697, allocations: 160.2 kB / 447 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.06974, allocations: 93 kB / 447.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.06976, allocations: 4 kB / 447.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.059e-05/0.06983, allocations: 8.031 kB / 447.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.164e-05/0.06985, allocations: 3.984 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.06986, allocations: 0 / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.191e-05/0.06991, allocations: 107.2 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.06991, allocations: 0 / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000193/0.07011, allocations: 4 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.000235/0.07035, allocations: 0.6937 MB / 448 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001045/0.07046, allocations: 27.92 kB / 448 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.07048, allocations: 4.156 kB / 448 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.41e-05/0.07052, allocations: 11.98 kB / 448 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.07082, allocations: 19.97 kB / 448 MB, free: 10.6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005718/0.0714, allocations: 0.5135 MB / 448.5 MB, free: 10.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.294e-05/0.07151, allocations: 0.6927 MB / 449.2 MB, free: 9.309 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.07156, allocations: 11.44 kB / 449.2 MB, free: 9.297 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.07157, allocations: 7.938 kB / 449.2 MB, free: 9.289 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.253/2.325, allocations: 0.9268 MB / 450.2 MB, free: 8.363 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,Time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,subSample.factor,time