Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.001311/0.001311, allocations: 109.5 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.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.001578/0.001578, allocations: 184.6 kB / 23.72 MB, free: 4.699 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.452/1.452, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 51.91 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2852, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.00226/0.2875, allocations: 0.869 MB / 423.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003452/0.2878, allocations: 119.6 kB / 423.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.81e-05/0.2879, allocations: 4 kB / 423.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.936e-05/0.288, allocations: 7.875 kB / 423.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.2881, allocations: 11.92 kB / 423.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.2883, allocations: 35.92 kB / 423.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.2884, allocations: 43.89 kB / 423.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.2885, allocations: 19.98 kB / 423.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.6e-05/0.2886, allocations: 15.88 kB / 423.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.966e-05/0.2886, allocations: 19.92 kB / 423.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.2887, allocations: 4 kB / 423.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.224e-05/0.2887, allocations: 4 kB / 423.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.095e-05/0.2887, allocations: 15.92 kB / 423.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.337e-05/0.2888, allocations: 35.78 kB / 423.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.2889, allocations: 56.05 kB / 423.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2889, allocations: 12 kB / 423.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2889, allocations: 0 / 423.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2889, allocations: 0 / 423.9 MB, free: 13.33 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004995/0.2894, allocations: 301.9 kB / 424.2 MB, free: 13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.2895, allocations: 12.03 kB / 424.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.514e-05/0.2895, allocations: 38.73 kB / 424.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.2895, allocations: 8.891 kB / 424.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.2898, allocations: 145.6 kB / 424.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.531e-06/0.2898, allocations: 4.375 kB / 424.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.684e-05/0.2898, allocations: 8.375 kB / 424.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002979/0.2901, allocations: 143.7 kB / 424.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.2901, allocations: 3.938 kB / 424.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.2901, allocations: 0 / 424.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.2901, allocations: 3.984 kB / 424.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.239e-05/0.2902, allocations: 24 kB / 424.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001675/0.2903, allocations: 152.7 kB / 424.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.2905, allocations: 70.69 kB / 424.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.005e-05/0.2905, allocations: 40.84 kB / 424.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.953e-06/0.2906, allocations: 0 / 424.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.2906, allocations: 38.56 kB / 424.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.72e-07/0.2906, allocations: 0 / 424.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002492/0.2908, allocations: 113.6 kB / 425 MB, free: 12.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.2909, allocations: 51.41 kB / 425 MB, free: 12.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.291, allocations: 145.8 kB / 425.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.291, allocations: 25.7 kB / 425.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.004e-05/0.2911, allocations: 84.14 kB / 425.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.2911, allocations: 11.92 kB / 425.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.216e-05/0.2912, allocations: 29.67 kB / 425.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.2913, allocations: 322.8 kB / 425.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.32e-05/0.2913, allocations: 8 kB / 425.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.248e-05/0.2914, allocations: 58.8 kB / 425.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.262e-05/0.2915, allocations: 74.81 kB / 425.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.2915, allocations: 7.938 kB / 425.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001381/0.2916, allocations: 97.44 kB / 425.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2917, allocations: 7.938 kB / 425.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2917, allocations: 4 kB / 425.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2917, allocations: 0 / 425.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.768e-05/0.2918, allocations: 16 kB / 425.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.2918, allocations: 11.92 kB / 425.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.704e-05/0.2918, allocations: 7.938 kB / 425.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.2918, allocations: 8.25 kB / 425.9 MB, free: 11.04 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.000112/0.2919, allocations: 125.1 kB / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.292, allocations: 85.5 kB / 426.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.65e-05/0.2921, allocations: 12.72 kB / 426.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2921, allocations: 0 / 426.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2921, allocations: 0 / 426.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2921, allocations: 4 kB / 426.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.2922, allocations: 140.7 kB / 426.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2922, allocations: 0 / 426.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.969e-05/0.2923, allocations: 20 kB / 426.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.2923, allocations: 3.938 kB / 426.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.2923, allocations: 0 / 426.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.2923, allocations: 7.984 kB / 426.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2923, allocations: 0 / 426.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/0.2924, allocations: 109 kB / 426.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.137e-05/0.2925, allocations: 31.75 kB / 426.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.2925, allocations: 0 / 426.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.25e-05/0.2925, allocations: 4 kB / 426.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-06/0.2925, allocations: 0 / 426.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.2925, allocations: 4 kB / 426.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.985e-05/0.2926, allocations: 108.7 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2926, allocations: 0 / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002118/0.2928, allocations: 12.19 kB / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0005174/0.2934, allocations: 0.6748 MB / 427.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001267/0.2935, allocations: 51.8 kB / 427.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2935, allocations: 0 / 427.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.2935, allocations: 0 / 427.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.2938, allocations: 47.98 kB / 427.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.295, allocations: 1.383 MB / 428.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.2954, allocations: 0.7002 MB / 429.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.831e-05/0.2954, allocations: 4.797 kB / 429.4 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.502e-05/0.2954, allocations: 15.42 kB / 429.5 MB, free: 7.258 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2954, allocations: 8 kB / 429.5 MB, free: 7.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02766/0.3231, allocations: 1.952 MB / 431.4 MB, free: 5.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.08, allocations: 13.67 kB / 431.4 MB, free: 5.422 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79641e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,previous(unitDelay1.u),assignClock1.u,assignClock1.y,const.y,sum.u[1] [Calling sys.exit(0), Time elapsed: 13.612210248000338]