Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008492/0.0008495, allocations: 107.7 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002486/0.0002486, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2934, allocations: 51.3 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.001482/0.295, allocations: 1.32 MB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006609/0.2956, allocations: 0.5039 MB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.638e-05/0.2957, allocations: 4.812 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.672e-05/0.2958, allocations: 3.938 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.2959, allocations: 12.59 kB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.2962, allocations: 47.84 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.557e-05/0.2963, allocations: 54.03 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.782e-05/0.2964, allocations: 19.94 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.2965, allocations: 25.56 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.985e-05/0.2966, allocations: 19.86 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.2966, allocations: 7.938 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.077e-05/0.2966, allocations: 8 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.806e-05/0.2967, allocations: 17.83 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.472e-05/0.2967, allocations: 49.52 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.245e-05/0.2968, allocations: 43.91 kB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2968, allocations: 0 / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.75e-05/0.2969, allocations: 0 / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.2969, allocations: 1.219 kB / 410.3 MB, free: 25.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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003895/0.2973, allocations: 384.4 kB / 410.6 MB, free: 25.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.2973, allocations: 9.031 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.939e-05/0.2974, allocations: 30.75 kB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.2975, allocations: 33.61 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.2977, allocations: 202.7 kB / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.2977, allocations: 4.375 kB / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.2977, allocations: 4.219 kB / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.298, allocations: 150.8 kB / 411.1 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.298, allocations: 0 / 411.1 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.298, allocations: 3.938 kB / 411.1 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.298, allocations: 4 kB / 411.1 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.547e-05/0.2981, allocations: 31.92 kB / 411.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002606/0.2984, allocations: 291.4 kB / 411.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.2985, allocations: 98.36 kB / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.112e-05/0.2986, allocations: 47.48 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.2986, allocations: 8 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.688e-05/0.2986, allocations: 30.56 kB / 411.6 MB, free: 23.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.2986, allocations: 0 / 411.6 MB, free: 23.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002697/0.2989, allocations: 113.7 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.299, allocations: 136.5 kB / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.979e-05/0.2991, allocations: 150.3 kB / 412 MB, free: 23.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.636e-06/0.2991, allocations: 29.7 kB / 412 MB, free: 23.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.026e-05/0.2991, allocations: 92.34 kB / 412.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.405e-05/0.2991, allocations: 11.91 kB / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/0.2991, allocations: 0 / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.634e-05/0.2992, allocations: 318.8 kB / 412.4 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.245e-05/0.2992, allocations: 11.98 kB / 412.4 MB, free: 23.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.688e-05/0.2993, allocations: 53.14 kB / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.74e-05/0.2994, allocations: 73.02 kB / 412.5 MB, free: 22.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2994, allocations: 4 kB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001261/0.2995, allocations: 85.45 kB / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.2996, allocations: 4 kB / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.2996, allocations: 4 kB / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.2996, allocations: 320 / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.832e-05/0.2997, allocations: 27.92 kB / 412.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.2997, allocations: 4 kB / 412.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.425e-05/0.2997, allocations: 8 kB / 412.7 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.2997, allocations: 0 / 412.7 MB, free: 22.78 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 5.979e-05/0.2998, allocations: 125.8 kB / 412.8 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.666e-05/0.2999, allocations: 65.53 kB / 412.9 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.2999, allocations: 15.97 kB / 412.9 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2999, allocations: 0 / 412.9 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2999, allocations: 4 kB / 412.9 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3, allocations: 0 / 412.9 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.3001, allocations: 181.5 kB / 413.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3001, allocations: 4 kB / 413.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.195e-05/0.3002, allocations: 15.92 kB / 413.1 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3002, allocations: 4 kB / 413.1 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.3002, allocations: 4 kB / 413.1 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3002, allocations: 0 / 413.1 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3002, allocations: 4 kB / 413.1 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001557/0.3004, allocations: 201.9 kB / 413.3 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.3004, allocations: 100.8 kB / 413.4 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.3004, allocations: 4 kB / 413.4 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.062e-05/0.3005, allocations: 11.98 kB / 413.4 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.987e-05/0.3005, allocations: 4 kB / 413.4 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.3006, allocations: 0 / 413.4 MB, free: 21.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.38e-05/0.3006, allocations: 111.2 kB / 413.5 MB, free: 21.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3006, allocations: 0 / 413.5 MB, free: 21.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002159/0.3008, allocations: 12 kB / 413.5 MB, free: 21.81 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.0003158/0.3012, allocations: 0.7304 MB / 414.3 MB, free: 21.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.3013, allocations: 51.91 kB / 414.3 MB, free: 20.99 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3013, allocations: 0 / 414.3 MB, free: 20.99 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.419e-05/0.3014, allocations: 8 kB / 414.3 MB, free: 20.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.3017, allocations: 49.98 kB / 414.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007462/0.3025, allocations: 0.6286 MB / 415 MB, free: 20.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.3026, allocations: 0.7084 MB / 415.7 MB, free: 19.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.283e-05/0.3027, allocations: 27.36 kB / 415.7 MB, free: 19.47 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3027, allocations: 0 / 415.7 MB, free: 19.47 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.556/2.859, allocations: 1.246 MB / 417 MB, free: 18.22 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.u,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time