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.001714/0.001714, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002305/0.002305, allocations: 208.2 kB / 23.73 MB, free: 4.523 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.43/1.43, allocations: 230.6 MB / 257.5 MB, free: 7.77 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.001568/0.001568, allocations: 51.92 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2879, allocations: 53.36 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003922/0.2918, allocations: 1.871 MB / 432.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.2941, allocations: 1.204 MB / 434.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.2943, allocations: 7.938 kB / 434.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003306/0.2946, allocations: 67.66 kB / 434.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003955/0.295, allocations: 135.4 kB / 434.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006851/0.2957, allocations: 234.2 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002728/0.2959, allocations: 187.4 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.2961, allocations: 21.73 kB / 434.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.2962, allocations: 83.69 kB / 434.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.2963, allocations: 79.67 kB / 434.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.2964, allocations: 12 kB / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.2965, allocations: 71.89 kB / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.42e-05/0.2966, allocations: 55.77 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.111e-05/0.2967, allocations: 55.61 kB / 435.1 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000412/0.2971, allocations: 252.6 kB / 435.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.2971, allocations: 4 kB / 435.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2971, allocations: 0 / 435.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.2971, allocations: 0 / 435.4 MB, free: 2.289 MB / 334.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.0008047/0.2979, allocations: 478.5 kB / 435.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.298, allocations: 8.031 kB / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.426e-05/0.298, allocations: 38.75 kB / 435.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.159e-05/0.2981, allocations: 24.78 kB / 435.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004822/0.2986, allocations: 233.5 kB / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.2986, allocations: 384 / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.2986, allocations: 15.94 kB / 436.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000381/0.299, allocations: 176.4 kB / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.299, allocations: 0 / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.299, allocations: 0 / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.299, allocations: 0 / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.2991, allocations: 47.89 kB / 436.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000564/0.2997, allocations: 345.5 kB / 436.7 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002581/0.3, allocations: 123.8 kB / 436.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.906e-05/0.3, allocations: 42.56 kB / 436.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.3001, allocations: 4 kB / 436.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.3003, allocations: 79.38 kB / 437 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.3003, allocations: 0 / 437 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000407/0.3007, allocations: 161.4 kB / 437.1 MB, free: 352 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.795e-05/0.3008, allocations: 132.5 kB / 437.3 MB, free: 188 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.3012, allocations: 341.9 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.3012, allocations: 33.95 kB / 437.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3013, allocations: 136 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.3013, allocations: 15.91 kB / 437.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.3014, allocations: 29.7 kB / 437.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3015, allocations: 334.8 kB / 438.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.356e-05/0.3016, allocations: 23.98 kB / 438.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.3018, allocations: 129.4 kB / 438.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.3019, allocations: 92.17 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3019, allocations: 4 kB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002468/0.3022, allocations: 125.4 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.3022, allocations: 8 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.3022, allocations: 0 / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.3022, allocations: 4 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.3023, allocations: 19.92 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.3023, allocations: 4 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.519e-05/0.3024, allocations: 20.05 kB / 438.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.3024, allocations: 4 kB / 438.6 MB, free: 14.8 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.0001521/0.3026, allocations: 150.1 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.214e-05/0.3027, allocations: 73.44 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002899/0.303, allocations: 135.3 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.303, allocations: 0 / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.303, allocations: 4 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.303, allocations: 3.938 kB / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002212/0.3032, allocations: 204.7 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3032, allocations: 8 kB / 439.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.435e-05/0.3033, allocations: 8 kB / 439.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3033, allocations: 7.938 kB / 439.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.3033, allocations: 3.984 kB / 439.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3033, allocations: 0 / 439.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.768e-06/0.3033, allocations: 4 kB / 439.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.3036, allocations: 174.5 kB / 439.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.404e-05/0.3037, allocations: 35.84 kB / 439.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.356e-05/0.3037, allocations: 7.984 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.52e-05/0.3038, allocations: 4 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.3038, allocations: 15.92 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.3039, allocations: 4 kB / 439.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002656/0.3041, allocations: 253.2 kB / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3041, allocations: 0 / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000274/0.3044, allocations: 31.94 kB / 439.7 MB, free: 13.61 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.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.002135/0.3065, allocations: 1.061 MB / 440.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002617/0.3068, allocations: 75.91 kB / 440.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3068, allocations: 0 / 440.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.49e-05/0.3069, allocations: 39.91 kB / 440.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.3073, allocations: 70.36 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002798/0.3101, allocations: 2.234 MB / 443.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.3103, allocations: 140.3 kB / 443.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.724e-05/0.3104, allocations: 25.62 kB / 443.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.3105, allocations: 63.41 kB / 443.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3105, allocations: 0 / 443.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03519/0.3457, allocations: 6.089 MB / 449.4 MB, free: 3.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.17, allocations: 7.844 kB / 449.5 MB, free: 3.902 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.777599783003097]