Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_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.0008615/0.0008615, allocations: 178.2 kB / 16.77 MB, free: 5.02 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.229/1.229, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0006865/0.0006864, allocations: 86.36 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06106/0.06106, allocations: 12.19 MB / 331.8 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004063, allocations: 23.94 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07484/0.07527, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.001425/0.07672, allocations: 1.278 MB / 443.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006745/0.07742, allocations: 0.4922 MB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.977e-05/0.07753, allocations: 7.938 kB / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.054e-05/0.07757, allocations: 0 / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.07768, allocations: 11.91 kB / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.07791, allocations: 43.91 kB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.5e-05/0.07799, allocations: 47.78 kB / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.678e-05/0.07807, allocations: 20.17 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.102e-05/0.07816, allocations: 19.92 kB / 444.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.109e-05/0.07821, allocations: 23.86 kB / 444.4 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.07823, allocations: 3.938 kB / 444.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.021e-05/0.07824, allocations: 0 / 444.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.637e-05/0.07828, allocations: 11.92 kB / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.83e-05/0.07831, allocations: 53.56 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.256e-05/0.07837, allocations: 23.95 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.07838, allocations: 3.938 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.07838, allocations: 0 / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.07839, allocations: 4 kB / 444.5 MB, free: 14.49 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.0002915/0.07869, allocations: 383.4 kB / 444.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.07873, allocations: 12.03 kB / 444.9 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.178e-05/0.07875, allocations: 30.75 kB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.985e-05/0.07878, allocations: 8.844 kB / 445 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.0789, allocations: 196.1 kB / 445.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.034e-06/0.07892, allocations: 384 / 445.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.07894, allocations: 8.375 kB / 445.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.07915, allocations: 121.8 kB / 445.3 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.07917, allocations: 4 kB / 445.3 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-06/0.07919, allocations: 7.984 kB / 445.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.07919, allocations: 3.938 kB / 445.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.416e-05/0.07927, allocations: 27.98 kB / 445.3 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002047/0.07949, allocations: 274.5 kB / 445.6 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.13e-05/0.07958, allocations: 75.78 kB / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.11e-05/0.07964, allocations: 30.64 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.07966, allocations: 3.984 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.576e-05/0.07968, allocations: 42.55 kB / 445.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.07969, allocations: 0 / 445.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002208/0.07991, allocations: 93.45 kB / 445.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.07995, allocations: 103.2 kB / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.577e-05/0.08003, allocations: 149.6 kB / 446.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.234e-06/0.08005, allocations: 29.7 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.458e-05/0.08008, allocations: 88.05 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.0801, allocations: 0 / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-06/0.08011, allocations: 4 kB / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.121e-05/0.08016, allocations: 322.8 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.962e-05/0.0802, allocations: 12 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.773e-05/0.08025, allocations: 35.42 kB / 446.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.528e-05/0.08033, allocations: 51.36 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.08034, allocations: 4 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001143/0.08046, allocations: 77.45 kB / 446.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.08047, allocations: 8 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.08048, allocations: 0 / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.0805, allocations: 3.938 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.325e-05/0.08057, allocations: 8 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.08058, allocations: 12.11 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.808e-05/0.08062, allocations: 4 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.08063, allocations: 0 / 446.7 MB, free: 12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.958e-05/0.08069, allocations: 121.6 kB / 446.9 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.97e-05/0.08075, allocations: 57.53 kB / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.218e-05/0.08078, allocations: 15.83 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.08079, allocations: 0 / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.0808, allocations: 4.062 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.0808, allocations: 8.078 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.08092, allocations: 177.6 kB / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.08093, allocations: 0 / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.346e-05/0.08099, allocations: 15.94 kB / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.081, allocations: 0 / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.08101, allocations: 3.984 kB / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.08101, allocations: 0 / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.08102, allocations: 7.938 kB / 447.1 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001305/0.08115, allocations: 185.1 kB / 447.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.44e-05/0.0812, allocations: 93 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.08121, allocations: 0 / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.51e-05/0.08128, allocations: 4 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.357e-05/0.08131, allocations: 0 / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.08132, allocations: 8 kB / 447.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.295e-05/0.08137, allocations: 107.2 kB / 447.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08138, allocations: 0 / 447.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002007/0.08158, allocations: 12 kB / 447.5 MB, free: 11.09 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0002632/0.08185, allocations: 0.7178 MB / 448.3 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.08197, allocations: 31.92 kB / 448.3 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.08198, allocations: 4 kB / 448.3 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.295e-05/0.08202, allocations: 8.25 kB / 448.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.08234, allocations: 31.95 kB / 448.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000682/0.08303, allocations: 0.5602 MB / 448.9 MB, free: 9.633 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.08315, allocations: 0.6926 MB / 449.6 MB, free: 8.914 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.502e-05/0.08319, allocations: 15.5 kB / 449.6 MB, free: 8.898 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.0832, allocations: 3.938 kB / 449.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.302/2.385, allocations: 1.051 MB / 450.7 MB, free: 7.844 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,subSample.factor,subSample.inferFactor,subSample.u,subSample.y,time