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.0008206/0.0008207, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008643/0.0008644, allocations: 206.1 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 227.7 MB / 246.8 MB, free: 11.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001995/0.0001995, allocations: 4 kB / 307.8 MB, free: 0.6953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08276/0.08298, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.001953/0.08497, allocations: 1.63 MB / 361 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.08665, allocations: 1.185 MB / 362.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.455e-05/0.08676, allocations: 8 kB / 362.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004812/0.08724, allocations: 143.6 kB / 362.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.08753, allocations: 139.5 kB / 362.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003541/0.08789, allocations: 151.2 kB / 362.6 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002058/0.08811, allocations: 203.4 kB / 362.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.821e-05/0.08821, allocations: 33.67 kB / 362.8 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.08833, allocations: 75.56 kB / 362.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.08844, allocations: 71.62 kB / 363 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.08846, allocations: 4 kB / 363 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.08857, allocations: 43.98 kB / 363 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.866e-05/0.08864, allocations: 43.77 kB / 363.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.779e-05/0.08872, allocations: 93.19 kB / 363.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.08895, allocations: 211.5 kB / 363.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.08897, allocations: 4 kB / 363.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.08897, allocations: 0 / 363.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.08898, allocations: 0 / 363.4 MB, free: 9.137 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.0005921/0.08958, allocations: 0.4924 MB / 363.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.08962, allocations: 12.03 kB / 363.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.95e-05/0.08967, allocations: 38.69 kB / 363.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.385e-05/0.08972, allocations: 20.75 kB / 363.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.09, allocations: 274.8 kB / 364.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.09002, allocations: 4.375 kB / 364.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.09005, allocations: 15.92 kB / 364.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.09035, allocations: 171.5 kB / 364.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.09037, allocations: 4 kB / 364.4 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.09039, allocations: 8 kB / 364.4 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.0904, allocations: 0 / 364.4 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.651e-05/0.0905, allocations: 39.91 kB / 364.4 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004149/0.09092, allocations: 379.2 kB / 364.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.09114, allocations: 138.4 kB / 364.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.008e-05/0.09124, allocations: 59.42 kB / 365 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.09126, allocations: 0 / 365 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001345/0.0914, allocations: 79.33 kB / 365.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.09141, allocations: 0 / 365.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.00032/0.09174, allocations: 157.3 kB / 365.2 MB, free: 7.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/0.09182, allocations: 166.2 kB / 365.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002515/0.09208, allocations: 282.6 kB / 365.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.0921, allocations: 29.69 kB / 365.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.86e-05/0.09218, allocations: 120.8 kB / 365.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.0922, allocations: 19.81 kB / 365.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.09224, allocations: 21.7 kB / 365.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.026e-05/0.09233, allocations: 326.8 kB / 366.2 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.522e-05/0.09239, allocations: 23.98 kB / 366.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.232e-05/0.09248, allocations: 75.72 kB / 366.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001281/0.09262, allocations: 98.16 kB / 366.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.09263, allocations: 4 kB / 366.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002065/0.09284, allocations: 141.2 kB / 366.5 MB, free: 5.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.09286, allocations: 7.938 kB / 366.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.09287, allocations: 4 kB / 366.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.09289, allocations: 0 / 366.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.572e-05/0.09296, allocations: 15.94 kB / 366.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.09297, allocations: 4 kB / 366.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.115e-05/0.09305, allocations: 16.05 kB / 366.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.09307, allocations: 12 kB / 366.6 MB, free: 5.543 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.0001098/0.09318, allocations: 150.5 kB / 366.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.475e-05/0.09327, allocations: 77.34 kB / 366.8 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.494e-05/0.09332, allocations: 25.7 kB / 366.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.09333, allocations: 4 kB / 366.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.09334, allocations: 0 / 366.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.09335, allocations: 7.938 kB / 366.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.09352, allocations: 233.7 kB / 367.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.09353, allocations: 0 / 367.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.496e-05/0.09356, allocations: 4 kB / 367.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.09357, allocations: 0 / 367.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.09359, allocations: 11.94 kB / 367.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.09359, allocations: 0 / 367.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.0936, allocations: 7.984 kB / 367.1 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002193/0.09383, allocations: 175.3 kB / 367.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.935e-05/0.09391, allocations: 112.8 kB / 367.4 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.09395, allocations: 4 kB / 367.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.292e-05/0.09401, allocations: 7.984 kB / 367.4 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.09406, allocations: 7.938 kB / 367.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.09408, allocations: 8 kB / 367.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001812/0.09426, allocations: 206 kB / 367.6 MB, free: 4.414 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09427, allocations: 4 kB / 367.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.09452, allocations: 35.89 kB / 367.6 MB, free: 4.375 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.001186/0.09571, allocations: 1.012 MB / 368.6 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001846/0.09591, allocations: 87.72 kB / 368.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09592, allocations: 0 / 368.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.206e-05/0.09598, allocations: 31.97 kB / 368.8 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003996/0.09639, allocations: 72.48 kB / 368.8 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.09844, allocations: 2.089 MB / 370.9 MB, free: 1.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.09869, allocations: 0.7361 MB / 371.7 MB, free: 300 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.714e-05/0.09877, allocations: 21.53 kB / 371.7 MB, free: 280 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.703e-05/0.09885, allocations: 59.42 kB / 371.7 MB, free: 220 kB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09886, allocations: 3.938 kB / 371.7 MB, free: 216 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1578/0.2566, allocations: 4.447 MB / 376.2 MB, free: 18.44 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/0.2568, allocations: 259.6 kB / 376.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/1.995, allocations: 4.688 kB / 376.4 MB, free: 18.18 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