Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_BackSample",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.0009208/0.0009208, allocations: 174.4 kB / 16.77 MB, free: 4.926 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.008 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.0006883/0.0006886, allocations: 100.9 kB / 271.3 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05809/0.05809, allocations: 12.2 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003613, allocations: 19.94 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06471/0.06508, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample): time 0.001257/0.06637, allocations: 1.302 MB / 443.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005997/0.06698, allocations: 0.5389 MB / 444.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.629e-05/0.06706, allocations: 4 kB / 444.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.68e-05/0.0671, allocations: 3.938 kB / 444.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.06721, allocations: 11.92 kB / 444.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.06741, allocations: 47.83 kB / 444.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.835e-05/0.0675, allocations: 63.72 kB / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.372e-05/0.06759, allocations: 19.98 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.973e-05/0.06767, allocations: 35.84 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.546e-05/0.06772, allocations: 15.88 kB / 444.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.06774, allocations: 0 / 444.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.19e-05/0.06776, allocations: 4 kB / 444.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.951e-05/0.0678, allocations: 15.92 kB / 444.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.914e-05/0.06783, allocations: 49.52 kB / 444.6 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.794e-05/0.0679, allocations: 43.91 kB / 444.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.0679, allocations: 0 / 444.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.06791, allocations: 0 / 444.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.805e-06/0.06792, allocations: 4 kB / 444.7 MB, free: 14.37 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003141/0.06824, allocations: 379.3 kB / 445 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.06828, allocations: 12.03 kB / 445 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.953e-05/0.06832, allocations: 30.75 kB / 445.1 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.329e-05/0.06835, allocations: 12.75 kB / 445.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.0685, allocations: 208.1 kB / 445.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.06852, allocations: 4.375 kB / 445.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.06853, allocations: 4.375 kB / 445.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.06882, allocations: 154.7 kB / 445.4 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.06885, allocations: 0 / 445.4 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.06886, allocations: 0 / 445.4 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.06887, allocations: 4 kB / 445.4 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.76e-05/0.06897, allocations: 35.91 kB / 445.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000273/0.06925, allocations: 279.5 kB / 445.8 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.06936, allocations: 106.3 kB / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.669e-05/0.06944, allocations: 51.48 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.06947, allocations: 3.984 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.357e-05/0.06949, allocations: 34.56 kB / 445.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 2.495e-06/0.0695, allocations: 3.984 kB / 446 MB, free: 12.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002654/0.06977, allocations: 109.6 kB / 446.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.06983, allocations: 144.4 kB / 446.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.361e-05/0.06992, allocations: 146.4 kB / 446.3 MB, free: 12.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.895e-06/0.06994, allocations: 25.7 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.57e-05/0.06998, allocations: 100.1 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.15e-05/0.07, allocations: 4.219 kB / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-06/0.07001, allocations: 0 / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.082e-05/0.07006, allocations: 326.8 kB / 446.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.246e-05/0.07011, allocations: 12 kB / 446.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.608e-05/0.07016, allocations: 53.14 kB / 446.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.403e-05/0.07026, allocations: 65.08 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.07027, allocations: 4 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001244/0.07039, allocations: 93.39 kB / 447 MB, free: 11.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.07041, allocations: 4 kB / 447 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.07042, allocations: 0 / 447 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.07044, allocations: 4 kB / 447 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.806e-05/0.07052, allocations: 24.17 kB / 447 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.07054, allocations: 0 / 447 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.397e-05/0.07058, allocations: 4 kB / 447 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-06/0.0706, allocations: 4 kB / 447 MB, free: 11.63 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 6.287e-05/0.07067, allocations: 134.4 kB / 447.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.4e-05/0.07074, allocations: 65.53 kB / 447.2 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.744e-05/0.07078, allocations: 15.83 kB / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.07079, allocations: 4.094 kB / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.07079, allocations: 3.938 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.0708, allocations: 7.984 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.07092, allocations: 177.5 kB / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.07093, allocations: 0 / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.353e-05/0.071, allocations: 19.98 kB / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.07101, allocations: 0 / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.07102, allocations: 7.938 kB / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.07103, allocations: 0 / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.07103, allocations: 0 / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.07118, allocations: 205.9 kB / 447.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.07123, allocations: 96.98 kB / 447.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.07125, allocations: 4 kB / 447.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.813e-05/0.07132, allocations: 8 kB / 447.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.07135, allocations: 0 / 447.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-06/0.07136, allocations: 4 kB / 447.8 MB, free: 10.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.713e-05/0.07142, allocations: 115.1 kB / 447.9 MB, free: 10.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07142, allocations: 0 / 447.9 MB, free: 10.67 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002085/0.07163, allocations: 12 kB / 447.9 MB, free: 10.66 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.00027/0.07191, allocations: 0.7304 MB / 448.6 MB, free: 9.891 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001213/0.07204, allocations: 48.23 kB / 448.7 MB, free: 9.844 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.07205, allocations: 3.938 kB / 448.7 MB, free: 9.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.428e-05/0.07209, allocations: 11.98 kB / 448.7 MB, free: 9.828 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.07246, allocations: 43.91 kB / 448.7 MB, free: 9.785 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006859/0.07316, allocations: 0.6253 MB / 449.4 MB, free: 9.078 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.07327, allocations: 0.6926 MB / 450.1 MB, free: 8.359 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.816e-05/0.07332, allocations: 27.42 kB / 450.1 MB, free: 8.336 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.07332, allocations: 0 / 450.1 MB, free: 8.336 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.31/2.383, allocations: 1.234 MB / 451.3 MB, free: 7.102 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.u,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time