Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00178/0.00178, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.533/1.533, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 52.06 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1072, allocations: 53.33 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003364/0.1106, allocations: 1.901 MB / 428.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.1127, allocations: 1.286 MB / 429.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.1128, allocations: 7.938 kB / 429.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003131/0.1132, allocations: 63.67 kB / 429.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003682/0.1135, allocations: 139.4 kB / 429.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006521/0.1142, allocations: 223 kB / 429.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.1144, allocations: 183.5 kB / 430.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.1146, allocations: 21.56 kB / 430.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.1147, allocations: 75.62 kB / 430.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.1148, allocations: 87.66 kB / 430.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.1148, allocations: 8 kB / 430.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.115, allocations: 71.89 kB / 430.4 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.296e-05/0.1151, allocations: 55.77 kB / 430.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.989e-05/0.1152, allocations: 75.48 kB / 430.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003888/0.1156, allocations: 250.9 kB / 430.7 MB, free: 356 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1156, allocations: 0 / 430.7 MB, free: 356 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1156, allocations: 0 / 430.7 MB, free: 356 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.1156, allocations: 4 kB / 430.7 MB, free: 352 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.2054/0.321, allocations: 0.5415 MB / 431.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.3211, allocations: 6.594 kB / 431.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.544e-05/0.3211, allocations: 39.11 kB / 431.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.271e-05/0.3212, allocations: 23.73 kB / 431.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000473/0.3216, allocations: 297.8 kB / 431.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.3217, allocations: 4.875 kB / 431.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.3217, allocations: 9.234 kB / 431.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.3221, allocations: 152.9 kB / 431.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.3221, allocations: 3.938 kB / 431.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.3221, allocations: 5.844 kB / 431.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.3221, allocations: 1.781 kB / 431.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.3222, allocations: 34.34 kB / 431.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005185/0.3228, allocations: 391.3 kB / 432.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002573/0.323, allocations: 115.5 kB / 432.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.278e-05/0.3231, allocations: 42.09 kB / 432.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.3232, allocations: 5.734 kB / 432.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.3234, allocations: 79.7 kB / 432.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.3234, allocations: 3.781 kB / 432.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004217/0.3238, allocations: 152.8 kB / 432.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.165e-05/0.3238, allocations: 158.3 kB / 432.8 MB, free: 9.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/0.3242, allocations: 341.2 kB / 433.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.3242, allocations: 27.77 kB / 433.1 MB, free: 9.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.43e-05/0.3243, allocations: 132.7 kB / 433.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.427e-05/0.3243, allocations: 20.2 kB / 433.3 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.548e-05/0.3244, allocations: 33.16 kB / 433.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.039e-05/0.3244, allocations: 335.1 kB / 433.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.097e-05/0.3245, allocations: 27.14 kB / 433.7 MB, free: 9.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.944e-05/0.3246, allocations: 85.7 kB / 433.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.3248, allocations: 86.09 kB / 433.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3248, allocations: 0 / 433.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002092/0.325, allocations: 128.5 kB / 434 MB, free: 9.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.325, allocations: 5.938 kB / 434 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.325, allocations: 3.438 kB / 434 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.325, allocations: 7.5 kB / 434 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.3251, allocations: 18.59 kB / 434 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3251, allocations: 3.906 kB / 434 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.208e-05/0.3252, allocations: 8.094 kB / 434 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.3252, allocations: 2.656 kB / 434 MB, free: 9.113 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001053/0.3253, allocations: 157 kB / 434.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.533e-05/0.3254, allocations: 72.64 kB / 434.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.522e-05/0.3254, allocations: 27.09 kB / 434.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.3254, allocations: 4.344 kB / 434.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3255, allocations: 0.75 kB / 434.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3255, allocations: 0.9062 kB / 434.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.3256, allocations: 250.6 kB / 434.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3257, allocations: 3.766 kB / 434.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.595e-05/0.3257, allocations: 12.33 kB / 434.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3257, allocations: 1.125 kB / 434.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.3257, allocations: 5.625 kB / 434.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.3257, allocations: 1.312 kB / 434.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3257, allocations: 4 kB / 434.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002514/0.326, allocations: 168.2 kB / 434.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.93e-05/0.3261, allocations: 113.5 kB / 434.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.3261, allocations: 8.281 kB / 434.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.378e-05/0.3262, allocations: 2.312 kB / 434.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.293e-05/0.3262, allocations: 13.59 kB / 434.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.3262, allocations: 6.047 kB / 434.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002606/0.3265, allocations: 248.7 kB / 435.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3265, allocations: 5.188 kB / 435.1 MB, free: 8.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002958/0.3268, allocations: 36.28 kB / 435.1 MB, free: 8.453 MB / 350.1 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (9): * Single equations (assignments): 7 * 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.00206/0.3289, allocations: 1.025 MB / 436.1 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002749/0.3291, allocations: 71.48 kB / 436.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3291, allocations: 0 / 436.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.612e-05/0.3292, allocations: 25.3 kB / 436.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004627/0.3297, allocations: 62.95 kB / 436.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.3321, allocations: 2.229 MB / 438.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.3323, allocations: 0.7413 MB / 439.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.3324, allocations: 32.55 kB / 439.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.3325, allocations: 62.31 kB / 439.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3325, allocations: 0 / 439.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.3648, allocations: 5.346 MB / 444.7 MB, free: 4.875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.023/8.388, allocations: 1.469 kB / 444.7 MB, free: 4.875 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.060403512004996]