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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001725/0.001725, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002044/0.002044, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.398/1.398, allocations: 230.4 MB / 254 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 59.89 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1066, allocations: 53.38 MB / 426.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003224/0.1098, allocations: 1.944 MB / 428.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.1119, allocations: 1.242 MB / 429.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.577e-05/0.112, allocations: 11.88 kB / 429.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004785/0.1125, allocations: 151.5 kB / 429.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003612/0.1128, allocations: 163.3 kB / 429.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004449/0.1133, allocations: 177.6 kB / 430 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.1135, allocations: 191.5 kB / 430.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.379e-05/0.1136, allocations: 25.67 kB / 430.2 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.1137, allocations: 87.56 kB / 430.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.1138, allocations: 83.61 kB / 430.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.1139, allocations: 8 kB / 430.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.114, allocations: 63.91 kB / 430.5 MB, free: 488 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.834e-05/0.1141, allocations: 47.83 kB / 430.5 MB, free: 440 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.176e-05/0.1141, allocations: 79.48 kB / 430.6 MB, free: 360 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003102/0.1145, allocations: 230.9 kB / 430.8 MB, free: 128 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.1145, allocations: 0 / 430.8 MB, free: 128 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1145, allocations: 0 / 430.8 MB, free: 128 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.1145, allocations: 0 / 430.8 MB, free: 128 kB / 350.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.1889/0.3033, allocations: 0.5222 MB / 431.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.3034, allocations: 9.562 kB / 431.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.621e-05/0.3034, allocations: 39.94 kB / 431.4 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.056e-05/0.3035, allocations: 23.3 kB / 431.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/0.3038, allocations: 285.8 kB / 431.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.3038, allocations: 8.938 kB / 431.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.3038, allocations: 5.703 kB / 431.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003584/0.3042, allocations: 173.9 kB / 431.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3042, allocations: 0 / 431.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.3042, allocations: 3.594 kB / 431.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.3042, allocations: 1.438 kB / 431.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.3043, allocations: 41.66 kB / 431.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004204/0.3047, allocations: 378 kB / 432.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/0.305, allocations: 127.5 kB / 432.4 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.877e-05/0.3051, allocations: 58.45 kB / 432.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.3051, allocations: 1.969 kB / 432.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001449/0.3052, allocations: 81.91 kB / 432.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.3052, allocations: 0 / 432.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003704/0.3056, allocations: 157.7 kB / 432.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.3057, allocations: 160.3 kB / 432.9 MB, free: 6.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/0.3059, allocations: 283.1 kB / 433.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.306, allocations: 31.17 kB / 433.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.349e-05/0.306, allocations: 126.5 kB / 433.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.306, allocations: 20.67 kB / 433.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.3061, allocations: 30.31 kB / 433.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.82e-05/0.3061, allocations: 333.3 kB / 433.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.185e-05/0.3062, allocations: 27.83 kB / 433.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.999e-05/0.3063, allocations: 82.11 kB / 433.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/0.3064, allocations: 98.38 kB / 433.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3064, allocations: 0.8125 kB / 433.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002032/0.3066, allocations: 134.8 kB / 434 MB, free: 6.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.3066, allocations: 6.406 kB / 434 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3066, allocations: 1.031 kB / 434 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.3066, allocations: 5.797 kB / 434 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.127e-05/0.3067, allocations: 12.09 kB / 434 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.3067, allocations: 3.906 kB / 434 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.88e-05/0.3068, allocations: 11.34 kB / 434.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.978e-06/0.3068, allocations: 12.34 kB / 434.1 MB, free: 6.012 MB / 350.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 9.402e-05/0.3069, allocations: 150.9 kB / 434.2 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.983e-05/0.307, allocations: 77.8 kB / 434.3 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.622e-05/0.307, allocations: 30.2 kB / 434.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3071, allocations: 0 / 434.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3071, allocations: 3.531 kB / 434.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3071, allocations: 0 / 434.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.3072, allocations: 243.1 kB / 434.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3072, allocations: 4.094 kB / 434.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.571e-05/0.3072, allocations: 4.781 kB / 434.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3072, allocations: 0.6875 kB / 434.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.3072, allocations: 8.609 kB / 434.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.3072, allocations: 4.906 kB / 434.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3072, allocations: 3.797 kB / 434.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002121/0.3074, allocations: 171.2 kB / 434.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.163e-05/0.3075, allocations: 112 kB / 434.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.3075, allocations: 5.594 kB / 434.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.11e-05/0.3076, allocations: 7.75 kB / 434.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.3076, allocations: 4.938 kB / 434.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.3076, allocations: 4.188 kB / 434.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001641/0.3078, allocations: 209.5 kB / 435.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3078, allocations: 1.25 kB / 435.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002571/0.3081, allocations: 37 kB / 435.1 MB, free: 5.348 MB / 350.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.001709/0.3098, allocations: 1.022 MB / 436.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002005/0.31, allocations: 76.38 kB / 436.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.31, allocations: 3.938 kB / 436.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.472e-05/0.31, allocations: 23.89 kB / 436.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004184/0.3105, allocations: 72 kB / 436.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.3123, allocations: 2.055 MB / 438.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.3125, allocations: 0.7383 MB / 439.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.423e-05/0.3126, allocations: 33 kB / 439.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.278e-05/0.3126, allocations: 51.97 kB / 439.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3126, allocations: 0 / 439.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02807/0.3407, allocations: 5.024 MB / 444.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.606/7.947, allocations: 9.031 kB / 444.2 MB, free: 1.738 MB / 350.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79247e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable backSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable backSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.476023672963493]