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.001235/0.001235, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001346/0.001346, allocations: 219 kB / 21.46 MB, free: 1.586 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.413/1.413, allocations: 230.6 MB / 254.8 MB, free: 15.21 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.002113/0.002113, allocations: 51.92 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1191, allocations: 53.32 MB / 427 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003035/0.1222, allocations: 1.636 MB / 428.7 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.1233, allocations: 0.5883 MB / 429.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.672e-05/0.1234, allocations: 7.938 kB / 429.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.602e-05/0.1234, allocations: 7.875 kB / 429.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001391/0.1236, allocations: 15.86 kB / 429.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003596/0.1239, allocations: 74.48 kB / 429.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.1241, allocations: 55.8 kB / 429.4 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.1242, allocations: 20.22 kB / 429.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.1243, allocations: 39.78 kB / 429.5 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.426e-05/0.1244, allocations: 23.86 kB / 429.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.1244, allocations: 4 kB / 429.5 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.727e-05/0.1244, allocations: 4 kB / 429.5 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.713e-05/0.1245, allocations: 19.92 kB / 429.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.322e-05/0.1245, allocations: 35.73 kB / 429.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.1247, allocations: 75.59 kB / 429.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1247, allocations: 0 / 429.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1247, allocations: 0 / 429.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.1247, allocations: 4 kB / 429.6 MB, free: 2.145 MB / 350.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.0005237/0.1252, allocations: 394.9 kB / 430 MB, free: 1.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.1252, allocations: 8.031 kB / 430 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.47e-05/0.1252, allocations: 4.188 kB / 430 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.393e-05/0.1253, allocations: 38.69 kB / 430.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.1254, allocations: 24.83 kB / 430.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.1257, allocations: 208.2 kB / 430.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.1257, allocations: 4.375 kB / 430.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.1257, allocations: 4.375 kB / 430.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.126, allocations: 138.6 kB / 430.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1261, allocations: 11.94 kB / 430.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-06/0.1261, allocations: 0 / 430.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.1261, allocations: 0 / 430.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.989e-05/0.1262, allocations: 35.91 kB / 430.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003632/0.1265, allocations: 287.4 kB / 430.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/0.1267, allocations: 86.42 kB / 430.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.63e-05/0.1268, allocations: 51.42 kB / 430.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.1268, allocations: 7.969 kB / 430.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.1268, allocations: 38.56 kB / 430.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 3.276e-06/0.1268, allocations: 3.984 kB / 430.9 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003032/0.1271, allocations: 101.9 kB / 431 MB, free: 496 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.1272, allocations: 132.5 kB / 431.2 MB, free: 332 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.1274, allocations: 153.3 kB / 431.3 MB, free: 172 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.1274, allocations: 25.7 kB / 431.3 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.702e-05/0.1275, allocations: 92.14 kB / 431.4 MB, free: 44 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.1275, allocations: 7.953 kB / 431.4 MB, free: 36 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.1275, allocations: 29.77 kB / 431.5 MB, free: 0 / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1277, allocations: 314.8 kB / 431.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.413e-05/0.1277, allocations: 19.92 kB / 431.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.569e-05/0.1278, allocations: 45.14 kB / 431.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.1279, allocations: 69.08 kB / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1279, allocations: 0 / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001707/0.1281, allocations: 89.53 kB / 432 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.1281, allocations: 4 kB / 432 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1281, allocations: 0 / 432 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.1281, allocations: 4 kB / 432 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.342e-05/0.1282, allocations: 15.92 kB / 432 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1282, allocations: 7.938 kB / 432 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.998e-05/0.1282, allocations: 7.938 kB / 432 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.1282, allocations: 0 / 432 MB, free: 15.38 MB / 366.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.273e-05/0.1283, allocations: 129.9 kB / 432.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.1284, allocations: 65.53 kB / 432.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.807e-05/0.1285, allocations: 15.86 kB / 432.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.1285, allocations: 4 kB / 432.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1285, allocations: 128 / 432.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1285, allocations: 3.938 kB / 432.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.1287, allocations: 189.6 kB / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1287, allocations: 0 / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.843e-05/0.1288, allocations: 11.98 kB / 432.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.1288, allocations: 12.03 kB / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.1288, allocations: 0 / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1288, allocations: 0 / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1288, allocations: 4 kB / 432.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002225/0.129, allocations: 202 kB / 432.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.044e-05/0.1291, allocations: 93.05 kB / 432.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.613e-05/0.1291, allocations: 4 kB / 432.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.223e-05/0.1292, allocations: 0 / 432.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.056e-05/0.1292, allocations: 7.984 kB / 432.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-06/0.1292, allocations: 3.938 kB / 432.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.048e-05/0.1293, allocations: 119.2 kB / 432.9 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1293, allocations: 0 / 432.9 MB, free: 14.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002318/0.1295, allocations: 4 kB / 432.9 MB, free: 14.41 MB / 366.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.0005076/0.13, allocations: 0.7344 MB / 433.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.1302, allocations: 51.84 kB / 433.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1302, allocations: 0 / 433.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.082e-05/0.1302, allocations: 4 kB / 433.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.1306, allocations: 43.94 kB / 433.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.1321, allocations: 1.499 MB / 435.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.1325, allocations: 0.7002 MB / 435.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.091e-05/0.1325, allocations: 8.859 kB / 435.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.212e-05/0.1326, allocations: 27.42 kB / 436 MB, free: 11.16 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1326, allocations: 0 / 436 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01832/0.1509, allocations: 2.102 MB / 438.1 MB, free: 9.199 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/7.973, allocations: 20.69 kB / 438.1 MB, free: 9.184 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.606384426006116]