Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001743/0.001743, allocations: 112.5 kB / 20.43 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001544/0.001544, allocations: 213 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 230.5 MB / 257.4 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 59.89 kB / 377.8 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3085, allocations: 53.42 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.003444/0.312, allocations: 1.576 MB / 432.8 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.3131, allocations: 0.5453 MB / 433.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.732e-05/0.3132, allocations: 4 kB / 433.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.099e-05/0.3133, allocations: 3.938 kB / 433.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.3134, allocations: 19.8 kB / 433.3 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.3137, allocations: 47.83 kB / 433.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.3139, allocations: 55.83 kB / 433.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.314, allocations: 12.19 kB / 433.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.3141, allocations: 31.86 kB / 433.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.563e-05/0.3142, allocations: 19.91 kB / 433.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.3142, allocations: 4 kB / 433.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.315e-05/0.3142, allocations: 4 kB / 433.5 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.059e-05/0.3143, allocations: 23.86 kB / 433.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.985e-05/0.3143, allocations: 23.81 kB / 433.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.3145, allocations: 63.11 kB / 433.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3145, allocations: 0 / 433.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3145, allocations: 0 / 433.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.3145, allocations: 4 kB / 433.6 MB, free: 4.266 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005279/0.315, allocations: 306.9 kB / 433.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.3151, allocations: 8.031 kB / 433.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.764e-05/0.3151, allocations: 38.73 kB / 434 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.3153, allocations: 20.81 kB / 434 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/0.3156, allocations: 141.1 kB / 434.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.3156, allocations: 16.31 kB / 434.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.3156, allocations: 384 / 434.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002972/0.3159, allocations: 109 kB / 434.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3159, allocations: 0 / 434.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.316, allocations: 4 kB / 434.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.316, allocations: 0 / 434.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.893e-05/0.316, allocations: 23.98 kB / 434.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003751/0.3164, allocations: 232.8 kB / 434.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001014/0.3165, allocations: 45.14 kB / 434.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.367e-05/0.3166, allocations: 21.78 kB / 434.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.3166, allocations: 0 / 434.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.3166, allocations: 38.5 kB / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.363e-06/0.3166, allocations: 0 / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002735/0.3169, allocations: 65.62 kB / 434.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/0.317, allocations: 85.3 kB / 434.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.3172, allocations: 141.8 kB / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.3172, allocations: 25.7 kB / 434.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.539e-05/0.3173, allocations: 88.14 kB / 435 MB, free: 2.684 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.3173, allocations: 7.953 kB / 435 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.3173, allocations: 13.7 kB / 435 MB, free: 2.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.3175, allocations: 322.8 kB / 435.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.463e-05/0.3176, allocations: 7.984 kB / 435.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.567e-05/0.3176, allocations: 21.72 kB / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.454e-05/0.3177, allocations: 33.58 kB / 435.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3177, allocations: 0 / 435.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001297/0.3178, allocations: 57.62 kB / 435.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.3178, allocations: 12.12 kB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3178, allocations: 0 / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.3179, allocations: 3.938 kB / 435.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.971e-05/0.318, allocations: 4 kB / 435.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.318, allocations: 0 / 435.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.943e-05/0.318, allocations: 11.94 kB / 435.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.318, allocations: 0 / 435.5 MB, free: 2.164 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001246/0.3181, allocations: 117.8 kB / 435.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.832e-05/0.3182, allocations: 45.66 kB / 435.6 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.25e-05/0.3183, allocations: 15.75 kB / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3183, allocations: 0 / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3183, allocations: 0 / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3183, allocations: 4 kB / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001906/0.3185, allocations: 140.7 kB / 435.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3185, allocations: 0 / 435.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.173e-05/0.3185, allocations: 4 kB / 435.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.3185, allocations: 4 kB / 435.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.3185, allocations: 0 / 435.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.3185, allocations: 3.984 kB / 435.8 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3185, allocations: 4.031 kB / 435.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002007/0.3187, allocations: 164.2 kB / 436 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.351e-05/0.3188, allocations: 15.94 kB / 436 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.3188, allocations: 4 kB / 436 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.479e-05/0.3188, allocations: 4 kB / 436 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.107e-05/0.3189, allocations: 4.031 kB / 436 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.3189, allocations: 7.984 kB / 436 MB, free: 1.559 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.319, allocations: 106 kB / 436.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.319, allocations: 0 / 436.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002167/0.3192, allocations: 4 kB / 436.1 MB, free: 1.453 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0005581/0.3198, allocations: 0.6976 MB / 436.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.3199, allocations: 19.98 kB / 436.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3199, allocations: 0 / 436.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.077e-05/0.3199, allocations: 15.92 kB / 436.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.3203, allocations: 18.45 kB / 436.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.322, allocations: 1.328 MB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.3224, allocations: 0.6885 MB / 438.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.359e-05/0.3224, allocations: 19.94 kB / 438.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.642e-05/0.3225, allocations: 15.44 kB / 438.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3225, allocations: 0 / 438.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.3537, allocations: 1.656 MB / 440.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.53, allocations: 19.53 kB / 440.6 MB, free: 12.95 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.121035972002574]