Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001653/0.001653, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001957/0.001957, allocations: 208.7 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 230.5 MB / 258.2 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 63.89 kB / 378.5 MB, free: 2.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3428, allocations: 53.4 MB / 431.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003117/0.3459, allocations: 1.627 MB / 433.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.3471, allocations: 0.5415 MB / 434.1 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.3473, allocations: 3.938 kB / 434.1 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.891e-05/0.3473, allocations: 11.92 kB / 434.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001507/0.3475, allocations: 7.875 kB / 434.1 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000388/0.3479, allocations: 75.73 kB / 434.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.348, allocations: 59.72 kB / 434.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.3481, allocations: 18.34 kB / 434.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.3482, allocations: 31.8 kB / 434.3 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.278e-05/0.3483, allocations: 35.83 kB / 434.3 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.3483, allocations: 4 kB / 434.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.689e-05/0.3484, allocations: 8 kB / 434.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.28e-05/0.3484, allocations: 11.94 kB / 434.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.012e-05/0.3485, allocations: 27.8 kB / 434.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.3487, allocations: 67.67 kB / 434.4 MB, free: 3.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3487, allocations: 4 kB / 434.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3487, allocations: 0 / 434.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.3487, allocations: 3.938 kB / 434.4 MB, free: 3.902 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.0005322/0.3492, allocations: 321.8 kB / 434.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.3493, allocations: 8.031 kB / 434.8 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.521e-05/0.3493, allocations: 4.188 kB / 434.8 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.439e-05/0.3493, allocations: 34.75 kB / 434.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.3495, allocations: 24.83 kB / 434.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.3498, allocations: 157.4 kB / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.3498, allocations: 4.375 kB / 435 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.3498, allocations: 384 / 435 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.3501, allocations: 146.6 kB / 435.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3501, allocations: 0 / 435.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.457e-06/0.3502, allocations: 0 / 435.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3502, allocations: 0 / 435.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.087e-05/0.3503, allocations: 31.92 kB / 435.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003453/0.3506, allocations: 254.5 kB / 435.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.3508, allocations: 98.36 kB / 435.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.123e-05/0.3508, allocations: 39.48 kB / 435.5 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.3509, allocations: 4 kB / 435.6 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.3509, allocations: 38.5 kB / 435.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.3509, allocations: 4 kB / 435.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003061/0.3512, allocations: 97.5 kB / 435.7 MB, free: 2.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.3513, allocations: 144.4 kB / 435.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.3515, allocations: 150.2 kB / 436 MB, free: 2.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.3515, allocations: 25.7 kB / 436 MB, free: 2.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.205e-05/0.3515, allocations: 92.14 kB / 436.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.3516, allocations: 8.391 kB / 436.1 MB, free: 2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.191e-05/0.3516, allocations: 25.7 kB / 436.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3517, allocations: 322.8 kB / 436.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.91e-05/0.3518, allocations: 11.98 kB / 436.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.068e-05/0.3519, allocations: 45.14 kB / 436.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001203/0.352, allocations: 65.08 kB / 436.6 MB, free: 1.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.352, allocations: 4.125 kB / 436.6 MB, free: 1.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001691/0.3521, allocations: 93.44 kB / 436.7 MB, free: 1.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3522, allocations: 4 kB / 436.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3522, allocations: 4 kB / 436.7 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3522, allocations: 0 / 436.7 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.019e-05/0.3523, allocations: 15.98 kB / 436.7 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3523, allocations: 192 / 436.7 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.315e-05/0.3523, allocations: 15.94 kB / 436.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.3523, allocations: 4 kB / 436.7 MB, free: 1.344 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.617e-05/0.3524, allocations: 121.8 kB / 436.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.3525, allocations: 69.55 kB / 436.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.094e-05/0.3526, allocations: 19.91 kB / 436.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3526, allocations: 0 / 436.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3526, allocations: 3.938 kB / 436.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3526, allocations: 4 kB / 436.9 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.3528, allocations: 144.8 kB / 437.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3528, allocations: 4 kB / 437.1 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.572e-05/0.3529, allocations: 15.98 kB / 437.1 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.3529, allocations: 3.984 kB / 437.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3529, allocations: 4 kB / 437.1 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3529, allocations: 0 / 437.1 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3529, allocations: 0 / 437.1 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000233/0.3531, allocations: 210 kB / 437.3 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.728e-05/0.3532, allocations: 27.86 kB / 437.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.3532, allocations: 0 / 437.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.459e-05/0.3532, allocations: 8 kB / 437.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.251e-05/0.3533, allocations: 7.984 kB / 437.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.3533, allocations: 4 kB / 437.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001016/0.3534, allocations: 115.9 kB / 437.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3534, allocations: 0 / 437.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002435/0.3536, allocations: 12 kB / 437.5 MB, free: 0.4961 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.0005366/0.3542, allocations: 0.7265 MB / 438.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001682/0.3543, allocations: 48.03 kB / 438.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3543, allocations: 0 / 438.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.828e-05/0.3544, allocations: 11.94 kB / 438.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.3548, allocations: 47.94 kB / 438.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.3564, allocations: 1.499 MB / 439.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.871e-05/0.3565, allocations: 84.06 kB / 439.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.458e-05/0.3566, allocations: 4.672 kB / 439.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.582e-05/0.3566, allocations: 27.36 kB / 439.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3566, allocations: 0 / 439.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.38, allocations: 2.322 MB / 442.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.32, allocations: 12.05 kB / 442.2 MB, free: 11.68 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.971452174009755]