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.001328/0.001328, 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.00133/0.00133, allocations: 190.2 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.398/1.398, allocations: 225.7 MB / 252.5 MB, free: 12.79 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.001594/0.001594, allocations: 47.92 kB / 370.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2625, allocations: 52.18 MB / 422.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002945/0.2654, allocations: 0.8612 MB / 423.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000514/0.2659, allocations: 111.7 kB / 423.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.612e-05/0.266, allocations: 4 kB / 423.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.2661, allocations: 7.875 kB / 423.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.2663, allocations: 11.92 kB / 423.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.2665, allocations: 39.89 kB / 423.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001247/0.2666, allocations: 39.86 kB / 423.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.2667, allocations: 15.98 kB / 423.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.312e-05/0.2668, allocations: 11.94 kB / 423.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.223e-05/0.2669, allocations: 31.83 kB / 423.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.708e-05/0.2669, allocations: 8 kB / 423.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.747e-05/0.2669, allocations: 4 kB / 423.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.281e-05/0.267, allocations: 11.94 kB / 423.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.773e-05/0.267, allocations: 23.86 kB / 423.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.2672, allocations: 69.58 kB / 423.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2672, allocations: 0 / 423.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2672, allocations: 0 / 423.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2672, allocations: 0 / 423.8 MB, free: 13.27 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.0005535/0.2677, allocations: 305 kB / 424.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.2678, allocations: 8.031 kB / 424.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.73e-05/0.2678, allocations: 42.73 kB / 424.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.346e-05/0.2679, allocations: 12.89 kB / 424.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.2681, allocations: 134.4 kB / 424.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.2681, allocations: 8.375 kB / 424.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.459e-05/0.2681, allocations: 8.375 kB / 424.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.2684, allocations: 147.7 kB / 424.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2684, allocations: 3.938 kB / 424.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.2684, allocations: 8 kB / 424.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.2685, allocations: 3.938 kB / 424.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.408e-05/0.2685, allocations: 19.98 kB / 424.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001628/0.2687, allocations: 140.7 kB / 424.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.2688, allocations: 78.67 kB / 424.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.763e-05/0.2689, allocations: 40.84 kB / 424.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.2689, allocations: 0 / 424.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.269, allocations: 34.56 kB / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.72e-07/0.269, allocations: 0 / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002192/0.2692, allocations: 105.7 kB / 424.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.327e-05/0.2692, allocations: 55.41 kB / 424.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.2694, allocations: 148.9 kB / 425.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.2694, allocations: 25.7 kB / 425.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.259e-05/0.2694, allocations: 84.14 kB / 425.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.2695, allocations: 7.984 kB / 425.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.215e-05/0.2695, allocations: 29.67 kB / 425.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2696, allocations: 318.8 kB / 425.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.225e-05/0.2697, allocations: 8 kB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.007e-05/0.2697, allocations: 62.88 kB / 425.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.302e-05/0.2698, allocations: 74.81 kB / 425.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2698, allocations: 0 / 425.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001366/0.27, allocations: 97.66 kB / 425.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.27, allocations: 7.938 kB / 425.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.27, allocations: 3.984 kB / 425.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.27, allocations: 4 kB / 425.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.607e-05/0.2701, allocations: 19.98 kB / 425.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.2701, allocations: 7.938 kB / 425.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.51e-05/0.2701, allocations: 7.938 kB / 425.8 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.2701, allocations: 4 kB / 425.8 MB, free: 11 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.0001115/0.2702, allocations: 125.5 kB / 426 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.2703, allocations: 101.6 kB / 426.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.2704, allocations: 12.72 kB / 426.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.2704, allocations: 0 / 426.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2704, allocations: 4 kB / 426.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2704, allocations: 192 / 426.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.2705, allocations: 136.7 kB / 426.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2705, allocations: 3.938 kB / 426.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.333e-05/0.2706, allocations: 15.98 kB / 426.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2706, allocations: 3.938 kB / 426.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.2706, allocations: 4 kB / 426.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2706, allocations: 0 / 426.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.2706, allocations: 8 kB / 426.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001482/0.2707, allocations: 113 kB / 426.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.25e-05/0.2708, allocations: 19.83 kB / 426.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.2708, allocations: 4 kB / 426.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.574e-05/0.2708, allocations: 3.984 kB / 426.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-06/0.2708, allocations: 4 kB / 426.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.2708, allocations: 0 / 426.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.052e-05/0.2709, allocations: 106.2 kB / 426.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2709, allocations: 0 / 426.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001993/0.2711, allocations: 12 kB / 426.5 MB, free: 10.26 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.0005384/0.2717, allocations: 0.6749 MB / 427.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001394/0.2718, allocations: 55.83 kB / 427.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2718, allocations: 0 / 427.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.2718, allocations: 0 / 427.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.2721, allocations: 43.95 kB / 427.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.2733, allocations: 1.379 MB / 428.7 MB, free: 7.957 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.354e-05/0.2734, allocations: 83.31 kB / 428.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.029e-05/0.2734, allocations: 4.672 kB / 428.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.496e-05/0.2735, allocations: 19.42 kB / 428.8 MB, free: 7.828 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2735, allocations: 3.938 kB / 428.8 MB, free: 7.824 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02799/0.3015, allocations: 2.379 MB / 431.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.15, allocations: 2.234 kB / 431.1 MB, free: 5.59 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.581938292831182]