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.00131/0.00131, allocations: 112.2 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.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.001455/0.001455, allocations: 201.2 kB / 24.52 MB, free: 4.156 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.362/1.362, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001456/0.001456, allocations: 39.94 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2414, allocations: 53.36 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.002723/0.2441, allocations: 1.651 MB / 433.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009779/0.2451, allocations: 0.592 MB / 434.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.04e-05/0.2451, allocations: 7.938 kB / 434.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.248e-05/0.2452, allocations: 11.81 kB / 434.2 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.2453, allocations: 15.88 kB / 434.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.2456, allocations: 71.73 kB / 434.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.2457, allocations: 55.84 kB / 434.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.833e-05/0.2458, allocations: 16.16 kB / 434.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.2459, allocations: 39.84 kB / 434.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.367e-05/0.246, allocations: 23.86 kB / 434.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.246, allocations: 0 / 434.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.413e-05/0.2461, allocations: 8 kB / 434.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.406e-05/0.2461, allocations: 15.92 kB / 434.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.2462, allocations: 39.73 kB / 434.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.2463, allocations: 72.02 kB / 434.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2463, allocations: 4 kB / 434.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2463, allocations: 0 / 434.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.2463, allocations: 0 / 434.6 MB, free: 4.223 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.0004449/0.2468, allocations: 313.9 kB / 434.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2468, allocations: 12.02 kB / 434.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.361e-05/0.2468, allocations: 4.125 kB / 434.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.016e-05/0.2468, allocations: 38.75 kB / 434.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.247, allocations: 20.83 kB / 434.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.2472, allocations: 154.3 kB / 435.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.32e-06/0.2472, allocations: 384 / 435.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.765e-05/0.2472, allocations: 8.375 kB / 435.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002816/0.2475, allocations: 146.6 kB / 435.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2475, allocations: 0 / 435.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.2475, allocations: 0 / 435.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.2475, allocations: 4 kB / 435.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.554e-05/0.2476, allocations: 27.92 kB / 435.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003177/0.2479, allocations: 262.5 kB / 435.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.2481, allocations: 86.42 kB / 435.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.997e-05/0.2482, allocations: 55.42 kB / 435.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.2482, allocations: 0 / 435.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.2482, allocations: 34.56 kB / 435.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.2482, allocations: 4 kB / 435.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002776/0.2485, allocations: 105.5 kB / 435.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.2486, allocations: 128.5 kB / 435.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.2487, allocations: 157.6 kB / 436.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.2487, allocations: 25.7 kB / 436.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.654e-05/0.2488, allocations: 100.6 kB / 436.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/0.2488, allocations: 11.95 kB / 436.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/0.2488, allocations: 21.72 kB / 436.2 MB, free: 2.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.2489, allocations: 318.8 kB / 436.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.454e-05/0.249, allocations: 12 kB / 436.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.678e-05/0.2491, allocations: 45.14 kB / 436.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.2492, allocations: 65.08 kB / 436.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2492, allocations: 4 kB / 436.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001546/0.2493, allocations: 85.5 kB / 436.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.2493, allocations: 10.97 kB / 436.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.2493, allocations: 3.938 kB / 436.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2493, allocations: 4 kB / 436.8 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.355e-05/0.2494, allocations: 15.92 kB / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.2494, allocations: 4 kB / 436.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.657e-05/0.2495, allocations: 4.062 kB / 436.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.2495, allocations: 16.17 kB / 436.8 MB, free: 1.656 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 9.578e-05/0.2496, allocations: 125.8 kB / 436.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.2497, allocations: 65.53 kB / 437 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.563e-05/0.2497, allocations: 15.92 kB / 437 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2497, allocations: 0 / 437 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2497, allocations: 4 kB / 437 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.2498, allocations: 3.984 kB / 437 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001849/0.2499, allocations: 148.7 kB / 437.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2499, allocations: 8.094 kB / 437.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.085e-05/0.25, allocations: 15.92 kB / 437.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.25, allocations: 4 kB / 437.2 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.25, allocations: 0 / 437.2 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.25, allocations: 0 / 437.2 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.25, allocations: 4 kB / 437.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.2502, allocations: 206 kB / 437.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.21e-05/0.2503, allocations: 15.94 kB / 437.4 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.2503, allocations: 7.984 kB / 437.4 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.954e-05/0.2504, allocations: 3.938 kB / 437.4 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.2504, allocations: 4 kB / 437.4 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.2504, allocations: 4 kB / 437.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.372e-05/0.2505, allocations: 115.2 kB / 437.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2505, allocations: 4 kB / 437.6 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.2507, allocations: 8 kB / 437.6 MB, free: 0.8203 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.0005137/0.2512, allocations: 0.7421 MB / 438.3 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000156/0.2514, allocations: 39.92 kB / 438.3 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2514, allocations: 4 kB / 438.3 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.634e-05/0.2515, allocations: 8.047 kB / 438.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.2519, allocations: 40.73 kB / 438.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.2534, allocations: 1.506 MB / 439.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.2538, allocations: 0.708 MB / 440.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.663e-05/0.2538, allocations: 4.672 kB / 440.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.184e-05/0.2538, allocations: 23.42 kB / 440.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2538, allocations: 0 / 440.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.2762, allocations: 2.216 MB / 442.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.8, allocations: 13.91 kB / 442.9 MB, free: 11.49 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.21397689403966]