Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009418/0.0009418, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009341/0.0009341, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9006/0.9006, allocations: 173.3 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.798e-05/1.988e-05, allocations: 2.281 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.002329/0.002349, allocations: 1.848 MB / 320.3 MB, free: 4.512 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.003486, allocations: 0.9933 MB / 321.3 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.00359, allocations: 7.938 kB / 321.3 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000533/0.004123, allocations: 159.3 kB / 321.4 MB, free: 3.348 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002155/0.004339, allocations: 123.5 kB / 321.6 MB, free: 3.227 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003714/0.00471, allocations: 203 kB / 321.8 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002055/0.004915, allocations: 187.4 kB / 321.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.915e-05/0.005015, allocations: 21.73 kB / 322 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.005139, allocations: 99.66 kB / 322.1 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.209e-05/0.005231, allocations: 63.86 kB / 322.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.005249, allocations: 8 kB / 322.1 MB, free: 2.656 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.005356, allocations: 63.89 kB / 322.2 MB, free: 2.594 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.24e-05/0.005408, allocations: 43.83 kB / 322.2 MB, free: 2.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.66e-05/0.005455, allocations: 39.86 kB / 322.3 MB, free: 2.512 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.005679, allocations: 203.2 kB / 322.5 MB, free: 2.312 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.005681, allocations: 0 / 322.5 MB, free: 2.312 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.005683, allocations: 0 / 322.5 MB, free: 2.312 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.005687, allocations: 0 / 322.5 MB, free: 2.312 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005216/0.006208, allocations: 446 kB / 322.9 MB, free: 1.844 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.006242, allocations: 12.92 kB / 322.9 MB, free: 1.832 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002702/0.006512, allocations: 38.73 kB / 323 MB, free: 1.785 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.802e-05/0.00655, allocations: 24.84 kB / 323 MB, free: 1.762 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.006785, allocations: 208.8 kB / 323.2 MB, free: 1.527 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.006797, allocations: 4.375 kB / 323.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.006808, allocations: 8.375 kB / 323.2 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.007048, allocations: 145.9 kB / 323.3 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.007056, allocations: 7.938 kB / 323.3 MB, free: 1.348 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.007064, allocations: 4 kB / 323.4 MB, free: 1.344 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.007068, allocations: 0 / 323.4 MB, free: 1.344 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.871e-05/0.007137, allocations: 39.92 kB / 323.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003323/0.007469, allocations: 313.5 kB / 323.7 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000134/0.007603, allocations: 103.9 kB / 323.8 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.812e-05/0.007651, allocations: 46.5 kB / 323.8 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.007669, allocations: 7.984 kB / 323.9 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/0.007774, allocations: 71.39 kB / 323.9 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.007775, allocations: 0 / 323.9 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002396/0.008015, allocations: 145.4 kB / 324.1 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.008065, allocations: 114.8 kB / 324.2 MB, free: 400 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.008234, allocations: 265.7 kB / 324.4 MB, free: 128 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.008246, allocations: 29.7 kB / 324.5 MB, free: 92 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.834e-05/0.008314, allocations: 112.1 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.008336, allocations: 23.91 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/0.008369, allocations: 29.95 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.542e-05/0.008445, allocations: 330.8 kB / 324.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.596e-05/0.008481, allocations: 23.92 kB / 325 MB, free: 15.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.936e-05/0.00853, allocations: 68.27 kB / 325 MB, free: 15.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.628e-05/0.008596, allocations: 61.89 kB / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.008598, allocations: 0 / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.83e-05/0.008697, allocations: 93.55 kB / 325.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.008708, allocations: 4 kB / 325.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.008713, allocations: 64 / 325.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.008723, allocations: 11.94 kB / 325.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.332e-05/0.008777, allocations: 11.98 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.008782, allocations: 0 / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.075e-05/0.008812, allocations: 4 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-06/0.008819, allocations: 8 kB / 325.2 MB, free: 15.28 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 8.447e-05/0.008904, allocations: 133.8 kB / 325.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.029e-05/0.008954, allocations: 65.53 kB / 325.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.009098, allocations: 123.6 kB / 325.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.0091, allocations: 4.062 kB / 325.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.009104, allocations: 0 / 325.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.009109, allocations: 4 kB / 325.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.00923, allocations: 196.5 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.009232, allocations: 4 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.047e-05/0.009253, allocations: 11.92 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.009255, allocations: 0 / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.295e-06/0.009263, allocations: 4 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.009265, allocations: 0 / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.009266, allocations: 0 / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/0.009403, allocations: 166.6 kB / 325.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.76e-05/0.009451, allocations: 35.84 kB / 326 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.009469, allocations: 0 / 326 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.29e-05/0.009501, allocations: 4.062 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.658e-05/0.009538, allocations: 15.98 kB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.009551, allocations: 4 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001255/0.009676, allocations: 197.2 kB / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.009676, allocations: 0 / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001711/0.009848, allocations: 27.94 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0009463/0.01079, allocations: 1.031 MB / 327.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001396/0.01093, allocations: 63.84 kB / 327.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01094, allocations: 0 / 327.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.067e-05/0.01098, allocations: 27.92 kB / 327.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.01122, allocations: 71.11 kB / 327.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.01267, allocations: 1.887 MB / 329.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.447e-05/0.01276, allocations: 115.4 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.189e-05/0.01283, allocations: 21.62 kB / 329.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.33e-05/0.0129, allocations: 56.47 kB / 329.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.0129, allocations: 0 / 329.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.0309, allocations: 5.361 MB / 334.8 MB, free: 5.676 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.078/7.109, allocations: 11.14 kB / 334.8 MB, free: 5.668 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.915502018295228]