Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.001339/0.001339, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001493/0.001493, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 43.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2849, allocations: 53.38 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004226/0.2891, allocations: 1.935 MB / 433.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002482/0.2916, allocations: 1.336 MB / 434.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.2918, allocations: 3.938 kB / 434.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000347/0.2921, allocations: 71.61 kB / 434.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003889/0.2925, allocations: 135.4 kB / 434.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007292/0.2932, allocations: 234.9 kB / 434.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002938/0.2935, allocations: 187.5 kB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.2937, allocations: 21.73 kB / 435 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.2938, allocations: 87.62 kB / 435.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.2939, allocations: 83.61 kB / 435.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.294, allocations: 19.94 kB / 435.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000172/0.2941, allocations: 75.94 kB / 435.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.12e-05/0.2942, allocations: 55.77 kB / 435.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.427e-05/0.2943, allocations: 83.41 kB / 435.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003861/0.2947, allocations: 251.3 kB / 435.7 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2947, allocations: 0 / 435.7 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2947, allocations: 4 kB / 435.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.2947, allocations: 0 / 435.7 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007686/0.2955, allocations: 482.5 kB / 436.2 MB, free: 1.781 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.2955, allocations: 12.03 kB / 436.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.102e-05/0.2956, allocations: 46.67 kB / 436.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.552e-05/0.2956, allocations: 28.75 kB / 436.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.2961, allocations: 229.5 kB / 436.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.2961, allocations: 8.375 kB / 436.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.2961, allocations: 7.938 kB / 436.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000393/0.2965, allocations: 182.9 kB / 436.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.2965, allocations: 0 / 436.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.2965, allocations: 4 kB / 436.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2965, allocations: 0 / 436.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.2967, allocations: 39.92 kB / 436.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006081/0.2973, allocations: 457.6 kB / 437.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.2976, allocations: 138.5 kB / 437.3 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.2977, allocations: 59.41 kB / 437.4 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.2977, allocations: 0 / 437.4 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.2979, allocations: 97.03 kB / 437.4 MB, free: 324 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.213e-06/0.2979, allocations: 4 kB / 437.4 MB, free: 320 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004194/0.2983, allocations: 165.4 kB / 437.6 MB, free: 148 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.2984, allocations: 192.3 kB / 437.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003751/0.2988, allocations: 344.1 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.2988, allocations: 33.64 kB / 438.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.299, allocations: 128.4 kB / 438.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.299, allocations: 19.89 kB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.582e-05/0.2991, allocations: 33.7 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.2992, allocations: 334.8 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.552e-05/0.2993, allocations: 27.98 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.2995, allocations: 99.64 kB / 438.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.2997, allocations: 105.3 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2997, allocations: 0 / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002757/0.2999, allocations: 137.4 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.2999, allocations: 4 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2999, allocations: 8.156 kB / 439 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3, allocations: 3.938 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.3001, allocations: 27.92 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3001, allocations: 0 / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.44e-05/0.3002, allocations: 15.83 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.3002, allocations: 15.98 kB / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,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 0.0001567/0.3004, allocations: 145.8 kB / 439.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.3005, allocations: 77.48 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000279/0.3007, allocations: 115.5 kB / 439.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3007, allocations: 0 / 439.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3007, allocations: 4 kB / 439.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.3008, allocations: 7.922 kB / 439.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002418/0.301, allocations: 220.7 kB / 439.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.301, allocations: 3.984 kB / 439.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.925e-05/0.3011, allocations: 15.94 kB / 439.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3011, allocations: 4 kB / 439.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.3011, allocations: 4 kB / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.712e-06/0.3011, allocations: 12.11 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3011, allocations: 4 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003479/0.3014, allocations: 187.3 kB / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.404e-05/0.3015, allocations: 39.78 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.347e-05/0.3016, allocations: 4 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.978e-05/0.3016, allocations: 12.03 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.3017, allocations: 19.91 kB / 440 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.3017, allocations: 4 kB / 440 MB, free: 13.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002779/0.302, allocations: 251 kB / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.302, allocations: 0 / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002877/0.3023, allocations: 35.94 kB / 440.2 MB, free: 13.28 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.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 (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.002155/0.3044, allocations: 1.035 MB / 441.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002787/0.3047, allocations: 88.08 kB / 441.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3047, allocations: 4 kB / 441.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.304e-05/0.3048, allocations: 31.92 kB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004644/0.3053, allocations: 77.62 kB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.3081, allocations: 2.288 MB / 443.8 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004135/0.3085, allocations: 0.7476 MB / 444.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.989e-05/0.3086, allocations: 33.56 kB / 444.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3087, allocations: 63.41 kB / 444.6 MB, free: 8.891 MB / 350.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3087, allocations: 0 / 444.6 MB, free: 8.891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03458/0.3433, allocations: 5.676 MB / 450.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.52, allocations: 8.453 kB / 450.3 MB, free: 3.281 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_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_Hold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv failed! Error: Could not read variable hold1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv. Warning: Get data of variable hold1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.193640440000308]