Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001547/0.001547, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.001295/0.001295, allocations: 191.7 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.447/1.447, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 51.91 kB / 370.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3014, allocations: 52.19 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.00349/0.3049, allocations: 1.852 MB / 424.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.3069, allocations: 1.06 MB / 425.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.307, allocations: 7.938 kB / 425.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003161/0.3073, allocations: 71.59 kB / 425.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.3076, allocations: 99.59 kB / 425.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008282/0.3084, allocations: 253.7 kB / 425.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002706/0.3087, allocations: 171.5 kB / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.3088, allocations: 17.73 kB / 426.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.3089, allocations: 75.69 kB / 426.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.309, allocations: 87.61 kB / 426.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.821e-05/0.3091, allocations: 8 kB / 426.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001742/0.3092, allocations: 71.94 kB / 426.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.3094, allocations: 51.78 kB / 426.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.804e-05/0.3094, allocations: 55.59 kB / 426.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000356/0.3098, allocations: 240.7 kB / 426.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3098, allocations: 0 / 426.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3098, allocations: 0 / 426.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.3098, allocations: 0 / 426.7 MB, free: 10.29 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.0007671/0.3106, allocations: 470.6 kB / 427.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3106, allocations: 12.03 kB / 427.1 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.731e-05/0.3107, allocations: 38.73 kB / 427.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.463e-05/0.3107, allocations: 24.8 kB / 427.2 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.3111, allocations: 233.5 kB / 427.4 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.3112, allocations: 4.375 kB / 427.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.3112, allocations: 11.88 kB / 427.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003657/0.3115, allocations: 183.2 kB / 427.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.3116, allocations: 0 / 427.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.3116, allocations: 4 kB / 427.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.3116, allocations: 0 / 427.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.3117, allocations: 43.91 kB / 427.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005582/0.3123, allocations: 341.4 kB / 428 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002573/0.3125, allocations: 119.9 kB / 428.1 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.323e-05/0.3126, allocations: 46.56 kB / 428.2 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.3126, allocations: 3.938 kB / 428.2 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001757/0.3128, allocations: 79.38 kB / 428.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.3128, allocations: 0 / 428.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004182/0.3132, allocations: 165.4 kB / 428.4 MB, free: 8.348 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.3133, allocations: 132.5 kB / 428.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004072/0.3137, allocations: 329.8 kB / 428.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.3138, allocations: 25.7 kB / 428.9 MB, free: 7.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.3139, allocations: 128.4 kB / 429 MB, free: 7.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.683e-05/0.3139, allocations: 19.89 kB / 429 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.472e-05/0.3139, allocations: 33.66 kB / 429.1 MB, free: 7.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3141, allocations: 330.8 kB / 429.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.013e-05/0.3142, allocations: 23.98 kB / 429.4 MB, free: 7.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.3143, allocations: 141.3 kB / 429.5 MB, free: 7.113 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.3145, allocations: 84.22 kB / 429.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3145, allocations: 4.031 kB / 429.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002335/0.3147, allocations: 121.5 kB / 429.8 MB, free: 6.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3147, allocations: 11.94 kB / 429.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3147, allocations: 0 / 429.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3148, allocations: 0 / 429.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.3149, allocations: 23.92 kB / 429.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.3149, allocations: 7.984 kB / 429.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.072e-05/0.315, allocations: 19.83 kB / 429.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.315, allocations: 4 kB / 429.8 MB, free: 6.82 MB / 334.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.0001438/0.3151, allocations: 149.9 kB / 430 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.69e-05/0.3152, allocations: 65.5 kB / 430 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003218/0.3155, allocations: 131.4 kB / 430.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3155, allocations: 4 kB / 430.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3155, allocations: 0 / 430.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3156, allocations: 3.938 kB / 430.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.3158, allocations: 200.7 kB / 430.4 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.3158, allocations: 320 / 430.4 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-05/0.3159, allocations: 28.05 kB / 430.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3159, allocations: 0 / 430.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.3159, allocations: 0 / 430.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.289e-06/0.3159, allocations: 4 kB / 430.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3159, allocations: 0 / 430.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.3162, allocations: 178.5 kB / 430.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.028e-05/0.3162, allocations: 39.77 kB / 430.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.3163, allocations: 8 kB / 430.6 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.99e-05/0.3163, allocations: 0 / 430.6 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.952e-05/0.3164, allocations: 19.92 kB / 430.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.3164, allocations: 8 kB / 430.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.3167, allocations: 241.2 kB / 430.9 MB, free: 5.668 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3167, allocations: 4 kB / 430.9 MB, free: 5.664 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002735/0.3169, allocations: 31.94 kB / 430.9 MB, free: 5.633 MB / 334.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.002186/0.3191, allocations: 1.049 MB / 432 MB, free: 4.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002337/0.3194, allocations: 75.91 kB / 432 MB, free: 4.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3194, allocations: 4.25 kB / 432 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.94e-05/0.3195, allocations: 39.91 kB / 432.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.3199, allocations: 55.81 kB / 432.1 MB, free: 4.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002933/0.3228, allocations: 2.205 MB / 434.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000142/0.3229, allocations: 136.1 kB / 434.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.055e-05/0.323, allocations: 29.61 kB / 434.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.3231, allocations: 55.42 kB / 434.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.3231, allocations: 0 / 434.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03562/0.3587, allocations: 5.963 MB / 440.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.53, allocations: 3.859 kB / 440.5 MB, free: 12.13 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.123133352957666]