Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.BooleanSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001088/0.001088, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.3 MB, free: 9.062 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 70.39 kB / 306.4 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1273, allocations: 50.53 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.004165/0.1315, allocations: 1.973 MB / 358.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.1337, allocations: 1.224 MB / 360.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.1339, allocations: 0 / 360.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006721/0.1346, allocations: 143.6 kB / 360.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000409/0.1351, allocations: 143.5 kB / 360.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005388/0.1356, allocations: 143.7 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002706/0.1359, allocations: 203.4 kB / 360.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.136, allocations: 33.66 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.1362, allocations: 79.58 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.1363, allocations: 75.67 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.1364, allocations: 4 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.1365, allocations: 43.98 kB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.616e-05/0.1366, allocations: 51.7 kB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.389e-05/0.1367, allocations: 71.48 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002891/0.137, allocations: 219.5 kB / 361.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.137, allocations: 0 / 361.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.137, allocations: 0 / 361.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.137, allocations: 4 kB / 361.3 MB, free: 9.797 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000858/0.1379, allocations: 0.5255 MB / 361.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.138, allocations: 8.031 kB / 361.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/0.138, allocations: 38.75 kB / 361.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.637e-05/0.1381, allocations: 28.64 kB / 361.9 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.1384, allocations: 270.8 kB / 362.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.1385, allocations: 4.375 kB / 362.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.1385, allocations: 11.94 kB / 362.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000367/0.1389, allocations: 171.5 kB / 362.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1389, allocations: 0 / 362.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.1389, allocations: 8 kB / 362.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.1389, allocations: 0 / 362.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.139, allocations: 39.86 kB / 362.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005095/0.1396, allocations: 379.2 kB / 362.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000247/0.1398, allocations: 138.5 kB / 362.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.818e-05/0.1399, allocations: 51.42 kB / 362.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.14, allocations: 12 kB / 362.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001599/0.1401, allocations: 71.33 kB / 363 MB, free: 7.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/0.1401, allocations: 0 / 363 MB, free: 7.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003997/0.1405, allocations: 161.3 kB / 363.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/0.1406, allocations: 166.5 kB / 363.3 MB, free: 7.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003083/0.141, allocations: 282.5 kB / 363.6 MB, free: 7.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.141, allocations: 33.7 kB / 363.6 MB, free: 7.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.703e-05/0.1411, allocations: 120.3 kB / 363.8 MB, free: 7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.1411, allocations: 11.91 kB / 363.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.494e-05/0.1412, allocations: 33.61 kB / 363.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1413, allocations: 334.8 kB / 364.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.513e-05/0.1414, allocations: 24 kB / 364.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.754e-05/0.1415, allocations: 79.7 kB / 364.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.1416, allocations: 97.91 kB / 364.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1416, allocations: 0 / 364.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002338/0.1419, allocations: 129.8 kB / 364.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1419, allocations: 12 kB / 364.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.1419, allocations: 0 / 364.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.1419, allocations: 4 kB / 364.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.767e-05/0.142, allocations: 15.92 kB / 364.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.1421, allocations: 7.938 kB / 364.5 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.718e-05/0.1421, allocations: 19.78 kB / 364.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.1422, allocations: 4 kB / 364.5 MB, free: 6.172 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 0.0001274/0.1423, allocations: 150.5 kB / 364.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.781e-05/0.1424, allocations: 77.44 kB / 364.7 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.255e-05/0.1425, allocations: 25.7 kB / 364.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1425, allocations: 4 kB / 364.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1425, allocations: 0 / 364.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.1425, allocations: 7.938 kB / 364.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.1427, allocations: 233.5 kB / 365 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1427, allocations: 4 kB / 365 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.87e-05/0.1427, allocations: 7.938 kB / 365 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1427, allocations: 0 / 365 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.1428, allocations: 12.08 kB / 365 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.1428, allocations: 0 / 365 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.1428, allocations: 4 kB / 365 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002629/0.143, allocations: 171.4 kB / 365.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.952e-05/0.1431, allocations: 116.7 kB / 365.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1432, allocations: 8 kB / 365.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.614e-05/0.1433, allocations: 7.984 kB / 365.3 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.1433, allocations: 7.938 kB / 365.3 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.1433, allocations: 4 kB / 365.3 MB, free: 5.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001941/0.1435, allocations: 210 kB / 365.5 MB, free: 5.035 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1435, allocations: 0 / 365.5 MB, free: 5.035 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002671/0.1438, allocations: 31.98 kB / 365.6 MB, free: 5.004 MB / 302.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: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0014/0.1452, allocations: 1.021 MB / 366.6 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002167/0.1454, allocations: 87.78 kB / 366.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1455, allocations: 0 / 366.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.008e-05/0.1455, allocations: 23.98 kB / 366.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/0.146, allocations: 81.45 kB / 366.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/0.1483, allocations: 2.089 MB / 368.9 MB, free: 1.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.1487, allocations: 0.7362 MB / 369.6 MB, free: 0.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.576e-05/0.1488, allocations: 17.55 kB / 369.6 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.281e-05/0.1489, allocations: 59.41 kB / 369.7 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1489, allocations: 3.938 kB / 369.7 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2255/0.3744, allocations: 4.642 MB / 374.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001726/0.3746, allocations: 252.6 kB / 374.6 MB, free: 18.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/2.213, allocations: 3.75 kB / 374.6 MB, free: 18.62 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " 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,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time