Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 105.1 kB / 21.22 MB, free: 492 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 204.5 kB / 24.51 MB, free: 3.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.371/1.371, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 39.94 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2468, allocations: 53.37 MB / 431.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.002871/0.2496, allocations: 1.626 MB / 433.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.2506, allocations: 0.5376 MB / 434 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.2507, allocations: 11.94 kB / 434 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.897e-05/0.2508, allocations: 3.938 kB / 434.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.2509, allocations: 19.86 kB / 434.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.2513, allocations: 67.73 kB / 434.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.2514, allocations: 55.8 kB / 434.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.658e-05/0.2515, allocations: 14.33 kB / 434.2 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.2516, allocations: 43.78 kB / 434.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.688e-05/0.2516, allocations: 23.86 kB / 434.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.2517, allocations: 4 kB / 434.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.795e-05/0.2517, allocations: 4 kB / 434.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.1e-05/0.2518, allocations: 19.92 kB / 434.3 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.291e-05/0.2518, allocations: 31.8 kB / 434.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.252, allocations: 67.66 kB / 434.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.252, allocations: 0 / 434.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.252, allocations: 0 / 434.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.252, allocations: 0 / 434.4 MB, free: 4.121 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.0004726/0.2524, allocations: 329.7 kB / 434.7 MB, free: 3.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.2525, allocations: 12.03 kB / 434.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.152e-05/0.2525, allocations: 192 / 434.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.008e-05/0.2525, allocations: 34.75 kB / 434.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.2527, allocations: 28.83 kB / 434.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.2529, allocations: 146.4 kB / 434.9 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.2529, allocations: 384 / 434.9 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.253, allocations: 8.375 kB / 434.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.2532, allocations: 138.6 kB / 435.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.2532, allocations: 4 kB / 435.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.2533, allocations: 0 / 435.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2533, allocations: 4 kB / 435.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.125e-05/0.2534, allocations: 31.91 kB / 435.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003144/0.2537, allocations: 254.5 kB / 435.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/0.2538, allocations: 94.36 kB / 435.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.078e-05/0.2539, allocations: 51.42 kB / 435.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.2539, allocations: 4 kB / 435.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.2539, allocations: 38.55 kB / 435.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.2539, allocations: 0 / 435.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002792/0.2542, allocations: 97.5 kB / 435.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.865e-05/0.2543, allocations: 140.5 kB / 435.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.2545, allocations: 148.4 kB / 435.9 MB, free: 2.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.2545, allocations: 29.7 kB / 436 MB, free: 2.312 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.2545, allocations: 96.12 kB / 436.1 MB, free: 2.215 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.2545, allocations: 7.953 kB / 436.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.775e-05/0.2546, allocations: 17.72 kB / 436.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.2547, allocations: 326.8 kB / 436.4 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.653e-05/0.2548, allocations: 11.98 kB / 436.4 MB, free: 1.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.622e-05/0.2548, allocations: 49.14 kB / 436.5 MB, free: 1.777 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.2549, allocations: 65.08 kB / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2549, allocations: 4 kB / 436.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000149/0.2551, allocations: 81.5 kB / 436.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.2551, allocations: 11.94 kB / 436.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2551, allocations: 128 / 436.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.2551, allocations: 12.19 kB / 436.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.7e-05/0.2552, allocations: 8 kB / 436.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.2552, allocations: 15.91 kB / 436.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.951e-05/0.2553, allocations: 7.938 kB / 436.7 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.2553, allocations: 0 / 436.7 MB, free: 1.551 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 8.867e-05/0.2554, allocations: 121.8 kB / 436.8 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.2555, allocations: 69.53 kB / 436.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.754e-05/0.2555, allocations: 19.91 kB / 436.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2555, allocations: 4 kB / 436.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2555, allocations: 8.078 kB / 436.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2555, allocations: 3.938 kB / 436.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.2557, allocations: 148.7 kB / 437 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2557, allocations: 0 / 437 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.641e-05/0.2558, allocations: 15.98 kB / 437 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.2558, allocations: 4 kB / 437 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.2558, allocations: 0 / 437 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2558, allocations: 7.938 kB / 437.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2558, allocations: 0 / 437.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000215/0.256, allocations: 210 kB / 437.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/0.256, allocations: 15.94 kB / 437.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.2561, allocations: 4 kB / 437.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.181e-05/0.2561, allocations: 4 kB / 437.3 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.45e-05/0.2562, allocations: 4 kB / 437.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.2562, allocations: 3.984 kB / 437.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.378e-05/0.2562, allocations: 118.9 kB / 437.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2562, allocations: 0 / 437.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.2565, allocations: 8 kB / 437.4 MB, free: 0.7109 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.0005091/0.257, allocations: 0.7344 MB / 438.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001551/0.2571, allocations: 43.86 kB / 438.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2571, allocations: 0 / 438.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.512e-05/0.2572, allocations: 4 kB / 438.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.2576, allocations: 46.86 kB / 438.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.2592, allocations: 1.51 MB / 439.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.601e-05/0.2593, allocations: 79.33 kB / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.322e-05/0.2593, allocations: 12.66 kB / 439.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.625e-05/0.2594, allocations: 19.44 kB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2594, allocations: 3.938 kB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.2815, allocations: 2.334 MB / 442.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.75, allocations: 4.062 kB / 442.2 MB, free: 11.91 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.15040579601191]