Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 192.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 43.92 kB / 371.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2552, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003023/0.2582, allocations: 1.638 MB / 425.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000906/0.2591, allocations: 0.5103 MB / 425.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.085e-05/0.2592, allocations: 4 kB / 425.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.678e-05/0.2592, allocations: 11.86 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.2594, allocations: 11.88 kB / 425.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.2597, allocations: 55.81 kB / 425.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.2598, allocations: 63.73 kB / 425.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.2599, allocations: 19.91 kB / 425.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.557e-05/0.26, allocations: 27.86 kB / 425.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.894e-05/0.26, allocations: 27.86 kB / 425.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.171e-05/0.2601, allocations: 4 kB / 425.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.42e-05/0.2601, allocations: 4 kB / 425.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.815e-05/0.2602, allocations: 19.91 kB / 425.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.428e-05/0.2602, allocations: 31.75 kB / 425.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.2604, allocations: 72.44 kB / 425.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2604, allocations: 0 / 425.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2604, allocations: 4 kB / 425.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.2604, allocations: 0 / 425.9 MB, free: 12.08 MB / 334.1 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.0004904/0.2609, allocations: 305.9 kB / 426.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.2609, allocations: 12.03 kB / 426.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.739e-05/0.2609, allocations: 8.125 kB / 426.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.261, allocations: 38.73 kB / 426.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.261, allocations: 8.891 kB / 426.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.2613, allocations: 154.2 kB / 426.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.2613, allocations: 4.375 kB / 426.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.2613, allocations: 4.375 kB / 426.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.2616, allocations: 146.6 kB / 426.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.2616, allocations: 0 / 426.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.2617, allocations: 4 kB / 426.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.2617, allocations: 4 kB / 426.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.855e-05/0.2618, allocations: 27.92 kB / 426.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003471/0.2621, allocations: 262.4 kB / 426.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001356/0.2622, allocations: 90.42 kB / 427 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.202e-05/0.2623, allocations: 47.48 kB / 427 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.2623, allocations: 3.984 kB / 427 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.2624, allocations: 38.5 kB / 427.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.2624, allocations: 4 kB / 427.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002823/0.2627, allocations: 101.9 kB / 427.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/0.2627, allocations: 132.5 kB / 427.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.2629, allocations: 153.9 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.2629, allocations: 25.7 kB / 427.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.375e-05/0.263, allocations: 92.14 kB / 427.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.263, allocations: 7.953 kB / 427.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.788e-05/0.263, allocations: 25.77 kB / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.2632, allocations: 322.8 kB / 427.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.604e-05/0.2632, allocations: 11.98 kB / 427.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.449e-05/0.2633, allocations: 49.14 kB / 428 MB, free: 9.754 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.2634, allocations: 69.02 kB / 428 MB, free: 9.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2634, allocations: 0 / 428 MB, free: 9.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001576/0.2636, allocations: 89.5 kB / 428.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2636, allocations: 7.281 kB / 428.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2636, allocations: 4.125 kB / 428.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.2636, allocations: 0 / 428.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.927e-05/0.2637, allocations: 19.98 kB / 428.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.2637, allocations: 0 / 428.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.442e-05/0.2637, allocations: 4 kB / 428.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.2637, allocations: 4 kB / 428.2 MB, free: 9.539 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.2638, allocations: 129.9 kB / 428.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.264, allocations: 73.53 kB / 428.4 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.076e-05/0.264, allocations: 11.97 kB / 428.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.264, allocations: 0 / 428.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.264, allocations: 0 / 428.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.264, allocations: 7.938 kB / 428.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002739/0.2643, allocations: 152.7 kB / 428.5 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2643, allocations: 0 / 428.5 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.736e-05/0.2643, allocations: 15.98 kB / 428.5 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2643, allocations: 4.094 kB / 428.5 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.2643, allocations: 0 / 428.5 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.2643, allocations: 4 kB / 428.6 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2644, allocations: 0 / 428.6 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002173/0.2646, allocations: 201.9 kB / 428.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-05/0.2646, allocations: 23.88 kB / 428.8 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.2646, allocations: 0 / 428.8 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.408e-05/0.2647, allocations: 4 kB / 428.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.2647, allocations: 3.984 kB / 428.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.2647, allocations: 4 kB / 428.8 MB, free: 8.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.544e-05/0.2648, allocations: 115.2 kB / 428.9 MB, free: 8.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2648, allocations: 0 / 428.9 MB, free: 8.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002288/0.2651, allocations: 8 kB / 428.9 MB, free: 8.707 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004977/0.2655, allocations: 0.7382 MB / 429.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001509/0.2657, allocations: 47.91 kB / 429.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2657, allocations: 0 / 429.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.911e-05/0.2657, allocations: 11.94 kB / 429.7 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.2661, allocations: 40.09 kB / 429.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.2676, allocations: 1.493 MB / 431.2 MB, free: 6.219 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.2679, allocations: 0.7039 MB / 431.9 MB, free: 5.488 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.785e-05/0.2679, allocations: 8.672 kB / 431.9 MB, free: 5.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.481e-05/0.268, allocations: 23.42 kB / 432 MB, free: 5.457 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.268, allocations: 0 / 432 MB, free: 5.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.2903, allocations: 2.19 MB / 434.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.75, allocations: 15.28 kB / 434.2 MB, free: 3.41 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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.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 [Calling sys.exit(0), Time elapsed: 13.168252649018541]