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.001083/0.001083, allocations: 116.2 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 66.17 kB / 306.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1374, allocations: 50.52 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.004448/0.1419, allocations: 1.984 MB / 359.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.1443, allocations: 1.208 MB / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002269/0.1446, allocations: 7.938 kB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007173/0.1453, allocations: 143.6 kB / 360.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000498/0.1459, allocations: 139.6 kB / 360.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006185/0.1465, allocations: 167.1 kB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.1468, allocations: 203.4 kB / 360.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.147, allocations: 37.67 kB / 361 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.1471, allocations: 87.56 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.1473, allocations: 79.62 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.127e-05/0.1474, allocations: 8 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001525/0.1475, allocations: 55.97 kB / 361.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.819e-05/0.1476, allocations: 43.84 kB / 361.2 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.1477, allocations: 95.41 kB / 361.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003759/0.1481, allocations: 219.5 kB / 361.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1481, allocations: 0 / 361.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1481, allocations: 0 / 361.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.1481, allocations: 0 / 361.5 MB, free: 9.629 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.0009192/0.1491, allocations: 0.5163 MB / 362 MB, free: 9.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.1491, allocations: 12.03 kB / 362.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.866e-05/0.1492, allocations: 38.73 kB / 362.1 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.361e-05/0.1493, allocations: 24.66 kB / 362.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.1497, allocations: 278.8 kB / 362.4 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.1497, allocations: 4.375 kB / 362.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.61e-05/0.1497, allocations: 11.94 kB / 362.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003864/0.1501, allocations: 161.8 kB / 362.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1502, allocations: 7.938 kB / 362.6 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.1502, allocations: 4 kB / 362.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.1502, allocations: 3.938 kB / 362.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001178/0.1503, allocations: 31.98 kB / 362.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005966/0.1509, allocations: 391 kB / 363 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.1512, allocations: 134.5 kB / 363.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.1513, allocations: 63.36 kB / 363.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.1514, allocations: 0 / 363.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.1515, allocations: 75.39 kB / 363.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.784e-06/0.1516, allocations: 0 / 363.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004559/0.152, allocations: 165.2 kB / 363.4 MB, free: 7.477 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.1522, allocations: 162.2 kB / 363.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000344/0.1525, allocations: 286.5 kB / 363.9 MB, free: 6.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.1525, allocations: 25.7 kB / 363.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.1526, allocations: 124.3 kB / 364 MB, free: 6.832 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/0.1527, allocations: 12.28 kB / 364 MB, free: 6.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.1528, allocations: 41.61 kB / 364.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1529, allocations: 330.8 kB / 364.4 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.859e-05/0.153, allocations: 20.25 kB / 364.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.1531, allocations: 79.7 kB / 364.5 MB, free: 6.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.1533, allocations: 101.9 kB / 364.6 MB, free: 6.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1533, allocations: 0 / 364.6 MB, free: 6.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000256/0.1536, allocations: 133.4 kB / 364.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1536, allocations: 4 kB / 364.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.1536, allocations: 0 / 364.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.1536, allocations: 4 kB / 364.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.799e-05/0.1537, allocations: 19.92 kB / 364.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.1537, allocations: 0 / 364.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.336e-05/0.1538, allocations: 19.78 kB / 364.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.1538, allocations: 12.19 kB / 364.8 MB, free: 6 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.000177/0.154, allocations: 141.8 kB / 364.9 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.1542, allocations: 77.44 kB / 365 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.322e-05/0.1542, allocations: 25.7 kB / 365 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.1542, allocations: 0 / 365 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.1543, allocations: 4 kB / 365 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.1543, allocations: 3.938 kB / 365 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002685/0.1545, allocations: 237.6 kB / 365.3 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1546, allocations: 7.875 kB / 365.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.417e-05/0.1546, allocations: 8 kB / 365.3 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.1546, allocations: 4 kB / 365.3 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.1546, allocations: 3.984 kB / 365.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-05/0.1547, allocations: 4 kB / 365.3 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.1547, allocations: 4.062 kB / 365.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.155, allocations: 171.4 kB / 365.4 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.1551, allocations: 116.7 kB / 365.6 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.1552, allocations: 7.938 kB / 365.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.618e-05/0.1552, allocations: 7.984 kB / 365.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.306e-05/0.1553, allocations: 7.938 kB / 365.6 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.1553, allocations: 4 kB / 365.6 MB, free: 5.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002172/0.1555, allocations: 206 kB / 365.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1555, allocations: 4 kB / 365.8 MB, free: 4.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002831/0.1558, allocations: 35.98 kB / 365.8 MB, free: 4.832 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.001445/0.1573, allocations: 1.01 MB / 366.8 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002508/0.1575, allocations: 83.84 kB / 366.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1575, allocations: 0 / 366.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.467e-05/0.1576, allocations: 23.98 kB / 366.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000488/0.1581, allocations: 98.69 kB / 367 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.1609, allocations: 2.071 MB / 369.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.1613, allocations: 0.7359 MB / 369.8 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.509e-05/0.1614, allocations: 17.55 kB / 369.9 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.1615, allocations: 55.41 kB / 369.9 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1615, allocations: 7.938 kB / 369.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1989/0.3604, allocations: 4.774 MB / 374.7 MB, free: 19.44 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/0.3606, allocations: 257 kB / 375 MB, free: 19.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.235/2.595, allocations: 0 / 375 MB, free: 19.19 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