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.001968/0.001968, allocations: 118.3 kB / 18.49 MB, free: 4.535 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.001856/0.001856, allocations: 222.3 kB / 21.46 MB, free: 1.582 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.627/1.627, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.001882/0.001882, allocations: 67.89 kB / 373.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1384, allocations: 53.36 MB / 427.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.004521/0.143, allocations: 1.638 MB / 428.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.1445, allocations: 0.5844 MB / 429.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.219e-05/0.1446, allocations: 3.938 kB / 429.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.697e-05/0.1447, allocations: 7.875 kB / 429.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.1448, allocations: 19.84 kB / 429.3 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.1452, allocations: 67.75 kB / 429.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000133/0.1453, allocations: 59.78 kB / 429.4 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.1454, allocations: 16.22 kB / 429.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1455, allocations: 35.8 kB / 429.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.43e-05/0.1456, allocations: 23.86 kB / 429.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.678e-05/0.1456, allocations: 4 kB / 429.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.07e-05/0.1457, allocations: 7.984 kB / 429.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.711e-05/0.1457, allocations: 23.92 kB / 429.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.1458, allocations: 31.73 kB / 429.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.1459, allocations: 71.61 kB / 429.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1459, allocations: 4 kB / 429.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1459, allocations: 3.938 kB / 429.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.146, allocations: 0 / 429.7 MB, free: 1.98 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.0005486/0.1465, allocations: 391 kB / 430 MB, free: 1.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1465, allocations: 8.031 kB / 430.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.345e-05/0.1466, allocations: 4.188 kB / 430.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.742e-05/0.1466, allocations: 38.69 kB / 430.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.1468, allocations: 28.83 kB / 430.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.147, allocations: 208.2 kB / 430.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.1471, allocations: 4.375 kB / 430.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.1471, allocations: 8.375 kB / 430.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003156/0.1474, allocations: 142.6 kB / 430.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1474, allocations: 3.938 kB / 430.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.1474, allocations: 0 / 430.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1474, allocations: 0 / 430.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.675e-05/0.1475, allocations: 35.91 kB / 430.5 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003629/0.1479, allocations: 291.4 kB / 430.8 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.148, allocations: 86.42 kB / 430.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.563e-05/0.1481, allocations: 47.44 kB / 430.9 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.1482, allocations: 3.984 kB / 430.9 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.1482, allocations: 38.56 kB / 431 MB, free: 444 kB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.1482, allocations: 0 / 431 MB, free: 444 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000311/0.1485, allocations: 101.5 kB / 431.1 MB, free: 336 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.181e-05/0.1486, allocations: 136.5 kB / 431.2 MB, free: 168 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.1487, allocations: 146.2 kB / 431.4 MB, free: 12 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.1488, allocations: 29.7 kB / 431.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.408e-05/0.1489, allocations: 92.64 kB / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.927e-05/0.1489, allocations: 7.953 kB / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.003e-05/0.1489, allocations: 21.7 kB / 431.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.149, allocations: 318.8 kB / 431.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5e-05/0.1491, allocations: 19.92 kB / 431.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.177e-05/0.1492, allocations: 49.14 kB / 431.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.1493, allocations: 65.08 kB / 431.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1493, allocations: 128 / 431.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001693/0.1495, allocations: 97.48 kB / 432 MB, free: 15.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.1495, allocations: 4 kB / 432 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1495, allocations: 4 kB / 432 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.1495, allocations: 3.938 kB / 432 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.927e-05/0.1496, allocations: 19.92 kB / 432.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.1496, allocations: 3.984 kB / 432.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.445e-05/0.1496, allocations: 8.125 kB / 432.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.1496, allocations: 8 kB / 432.1 MB, free: 15.21 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.893e-05/0.1497, allocations: 125.8 kB / 432.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.1499, allocations: 61.55 kB / 432.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.768e-05/0.1499, allocations: 15.86 kB / 432.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1499, allocations: 4 kB / 432.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1499, allocations: 0 / 432.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1499, allocations: 3.938 kB / 432.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.1501, allocations: 185.7 kB / 432.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1501, allocations: 4 kB / 432.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.435e-05/0.1502, allocations: 15.98 kB / 432.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1502, allocations: 3.938 kB / 432.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.1502, allocations: 0 / 432.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1502, allocations: 4 kB / 432.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1502, allocations: 0 / 432.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002576/0.1505, allocations: 202 kB / 432.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.098e-05/0.1506, allocations: 93.05 kB / 432.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.1506, allocations: 4 kB / 432.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.384e-05/0.1507, allocations: 3.984 kB / 432.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.031e-05/0.1507, allocations: 4 kB / 432.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.1507, allocations: 3.938 kB / 432.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.1508, allocations: 123.9 kB / 432.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1508, allocations: 4 kB / 432.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002399/0.1511, allocations: 8 kB / 432.9 MB, free: 14.24 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.000639/0.1517, allocations: 0.7305 MB / 433.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001897/0.1519, allocations: 47.84 kB / 433.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1519, allocations: 0 / 433.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.008e-05/0.1519, allocations: 4 kB / 433.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.1524, allocations: 54.31 kB / 433.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.1542, allocations: 1.497 MB / 435.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.1545, allocations: 0.7041 MB / 436 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.613e-05/0.1545, allocations: 4.672 kB / 436 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.457e-05/0.1546, allocations: 27.42 kB / 436 MB, free: 10.99 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1546, allocations: 0 / 436 MB, free: 10.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01888/0.1735, allocations: 2.1 MB / 438.1 MB, free: 9.016 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/8.194, allocations: 19.23 kB / 438.1 MB, free: 9 MB / 366.1 MB " [Timeout remaining time 652] (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: 11.328844363044482]