Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.001008/0.001008, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001081/0.001081, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9171/0.9171, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.649e-06/4.649e-06, allocations: 4 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.724e-05/3.189e-05, allocations: 2.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002419/0.002451, allocations: 1.554 MB / 320 MB, free: 4.801 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007893/0.00324, allocations: 458.8 kB / 320.4 MB, free: 4.348 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.003353, allocations: 7.938 kB / 320.4 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.132e-05/0.003415, allocations: 7.922 kB / 320.4 MB, free: 4.332 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.003591, allocations: 7.875 kB / 320.4 MB, free: 4.324 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003043/0.003895, allocations: 62.7 kB / 320.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.004024, allocations: 47.78 kB / 320.6 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.004168, allocations: 24.09 kB / 320.6 MB, free: 4.195 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.00428, allocations: 27.91 kB / 320.6 MB, free: 4.168 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.872e-05/0.004338, allocations: 15.97 kB / 320.6 MB, free: 4.152 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.444e-05/0.004373, allocations: 4 kB / 320.6 MB, free: 4.148 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.038e-05/0.004383, allocations: 0 / 320.6 MB, free: 4.148 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.237e-05/0.004436, allocations: 15.94 kB / 320.6 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.459e-05/0.00446, allocations: 15.92 kB / 320.7 MB, free: 4.117 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001148/0.004575, allocations: 51.8 kB / 320.7 MB, free: 4.066 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.004579, allocations: 11.94 kB / 320.7 MB, free: 4.055 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.004581, allocations: 0 / 320.7 MB, free: 4.055 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.004585, allocations: 0 / 320.7 MB, free: 4.055 MB / 282.7 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.0004085/0.004994, allocations: 298 kB / 321 MB, free: 3.734 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.005043, allocations: 8.922 kB / 321 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.877e-05/0.005082, allocations: 34.75 kB / 321 MB, free: 3.684 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.005114, allocations: 12.84 kB / 321.1 MB, free: 3.672 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.005359, allocations: 141.6 kB / 321.2 MB, free: 3.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-06/0.005367, allocations: 4.375 kB / 321.2 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.005378, allocations: 8.375 kB / 321.2 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/0.005664, allocations: 105.6 kB / 321.3 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.005675, allocations: 192 / 321.3 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.005685, allocations: 3.938 kB / 321.3 MB, free: 3.371 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.005691, allocations: 0 / 321.3 MB, free: 3.371 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.166e-05/0.005742, allocations: 23.92 kB / 321.3 MB, free: 3.348 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000293/0.006035, allocations: 220.9 kB / 321.6 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.973e-05/0.006105, allocations: 61.08 kB / 321.6 MB, free: 3.008 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.122e-05/0.006136, allocations: 17.78 kB / 321.6 MB, free: 2.984 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.006164, allocations: 4 kB / 321.6 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.006184, allocations: 30.56 kB / 321.7 MB, free: 2.941 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.452e-06/0.006186, allocations: 0 / 321.7 MB, free: 2.941 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001848/0.006371, allocations: 69.56 kB / 321.7 MB, free: 2.867 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.006421, allocations: 81.36 kB / 321.8 MB, free: 2.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.006532, allocations: 145.8 kB / 322 MB, free: 2.617 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.006543, allocations: 25.7 kB / 322 MB, free: 2.586 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.653e-05/0.00659, allocations: 84.14 kB / 322.1 MB, free: 2.5 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.615e-05/0.006606, allocations: 7.953 kB / 322.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.006635, allocations: 21.64 kB / 322.1 MB, free: 2.465 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.261e-05/0.006727, allocations: 318.8 kB / 322.4 MB, free: 2.145 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.399e-05/0.006751, allocations: 8 kB / 322.4 MB, free: 2.137 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.683e-05/0.006768, allocations: 7.984 kB / 322.4 MB, free: 2.129 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.579e-05/0.006814, allocations: 20.91 kB / 322.4 MB, free: 2.105 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.006817, allocations: 3.938 kB / 322.4 MB, free: 2.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.585e-05/0.006892, allocations: 57.58 kB / 322.5 MB, free: 2.039 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.006906, allocations: 4 kB / 322.5 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.006912, allocations: 0 / 322.5 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.006927, allocations: 0 / 322.5 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.509e-05/0.006982, allocations: 7.984 kB / 322.5 MB, free: 2.027 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.006987, allocations: 3.938 kB / 322.5 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.676e-05/0.007004, allocations: 4 kB / 322.5 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.00701, allocations: 32 / 322.5 MB, free: 2.02 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 7.133e-05/0.007081, allocations: 117.8 kB / 322.6 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.482e-05/0.007136, allocations: 45.58 kB / 322.7 MB, free: 1.844 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.901e-05/0.007165, allocations: 11.81 kB / 322.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.007167, allocations: 0 / 322.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.007171, allocations: 0 / 322.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.007175, allocations: 0 / 322.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.007307, allocations: 144.7 kB / 322.8 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.007309, allocations: 4 kB / 322.8 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.041e-05/0.007339, allocations: 4 kB / 322.8 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.007342, allocations: 4.031 kB / 322.8 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.007351, allocations: 0 / 322.8 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.007354, allocations: 4 kB / 322.8 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.007357, allocations: 3.984 kB / 322.9 MB, free: 1.629 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.007485, allocations: 160.2 kB / 323 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.325e-05/0.007519, allocations: 19.88 kB / 323 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.007531, allocations: 0 / 323 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.369e-05/0.007565, allocations: 4 kB / 323 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.42e-05/0.007599, allocations: 3.984 kB / 323 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.007604, allocations: 8.031 kB / 323 MB, free: 1.418 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.036e-05/0.007664, allocations: 110.2 kB / 323.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007664, allocations: 0 / 323.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001428/0.007807, allocations: 4 kB / 323.2 MB, free: 1.309 MB / 282.7 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.0003751/0.008182, allocations: 0.6936 MB / 323.8 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.008319, allocations: 23.92 kB / 323.9 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.00832, allocations: 0 / 323.9 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.164e-05/0.008342, allocations: 16.08 kB / 323.9 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.008613, allocations: 23.84 kB / 323.9 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.009621, allocations: 1.286 MB / 325.2 MB, free: 15.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.656e-05/0.009688, allocations: 75.33 kB / 325.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.433e-05/0.009722, allocations: 4.188 kB / 325.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.76e-05/0.00977, allocations: 24.48 kB / 325.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of SimCode: time 9.82e-07/0.009771, allocations: 0 / 325.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01682/0.02659, allocations: 2.307 MB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.796/6.822, allocations: 8.047 kB / 327.6 MB, free: 12.85 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79319e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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: 8.690845305100083]