Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.001962/0.001962, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002137/0.002137, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.473/1.473, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 51.91 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1463, allocations: 53.34 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002368/0.1487, allocations: 0.8415 MB / 427.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003931/0.1491, allocations: 123.6 kB / 427.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.187e-05/0.1492, allocations: 0 / 427.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.1493, allocations: 7.922 kB / 427.3 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001379/0.1494, allocations: 15.88 kB / 427.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.1496, allocations: 39.89 kB / 427.3 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.1498, allocations: 43.86 kB / 427.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.1499, allocations: 19.98 kB / 427.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.548e-05/0.1499, allocations: 15.92 kB / 427.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.979e-05/0.15, allocations: 23.86 kB / 427.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.255e-05/0.15, allocations: 7.938 kB / 427.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.216e-05/0.15, allocations: 4 kB / 427.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.95e-05/0.1501, allocations: 19.91 kB / 427.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.548e-05/0.1501, allocations: 23.81 kB / 427.5 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.1503, allocations: 59.67 kB / 427.5 MB, free: 3.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1503, allocations: 4 kB / 427.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1503, allocations: 4 kB / 427.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.1503, allocations: 0 / 427.6 MB, free: 3.559 MB / 350.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.0005409/0.1508, allocations: 383 kB / 427.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1509, allocations: 12.03 kB / 427.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.906e-05/0.1509, allocations: 38.69 kB / 428 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.1509, allocations: 12.84 kB / 428 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.1512, allocations: 190.5 kB / 428.2 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.1512, allocations: 8.375 kB / 428.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.366e-05/0.1512, allocations: 8.375 kB / 428.2 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002937/0.1515, allocations: 139.7 kB / 428.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1515, allocations: 7.938 kB / 428.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.1515, allocations: 0 / 428.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1515, allocations: 0 / 428.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.275e-05/0.1516, allocations: 23.98 kB / 428.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.1517, allocations: 177.6 kB / 428.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.1519, allocations: 78.69 kB / 428.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.353e-05/0.152, allocations: 40.84 kB / 428.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.152, allocations: 0 / 428.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.152, allocations: 30.56 kB / 428.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.152, allocations: 4 kB / 428.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002204/0.1522, allocations: 105.7 kB / 428.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.869e-05/0.1523, allocations: 63.34 kB / 428.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.1524, allocations: 137.8 kB / 429 MB, free: 1.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.1524, allocations: 29.7 kB / 429 MB, free: 1.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.868e-05/0.1525, allocations: 88.14 kB / 429.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.1525, allocations: 3.953 kB / 429.1 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.36e-05/0.1525, allocations: 29.7 kB / 429.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.1527, allocations: 318.8 kB / 429.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.62e-05/0.1527, allocations: 11.98 kB / 429.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.409e-05/0.1528, allocations: 58.86 kB / 429.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.17e-05/0.1529, allocations: 70.94 kB / 429.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.1529, allocations: 4 kB / 429.6 MB, free: 1.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001428/0.153, allocations: 101.4 kB / 429.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.153, allocations: 14.44 kB / 429.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.153, allocations: 0 / 429.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.1531, allocations: 4 kB / 429.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.36e-05/0.1532, allocations: 12 kB / 429.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.1532, allocations: 4 kB / 429.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.092e-05/0.1532, allocations: 11.92 kB / 429.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.1532, allocations: 4.25 kB / 429.7 MB, free: 1.094 MB / 350.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.000118/0.1533, allocations: 129.8 kB / 429.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.1534, allocations: 85.88 kB / 429.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.432e-05/0.1535, allocations: 12.72 kB / 430 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1535, allocations: 0 / 430 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1535, allocations: 0 / 430 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1535, allocations: 0 / 430 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001396/0.1536, allocations: 177.6 kB / 430.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.1536, allocations: 0 / 430.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-05/0.1537, allocations: 19.94 kB / 430.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.1537, allocations: 3.938 kB / 430.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.1537, allocations: 4 kB / 430.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1537, allocations: 80 / 430.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.1537, allocations: 7.969 kB / 430.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.1539, allocations: 105.1 kB / 430.3 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.223e-05/0.154, allocations: 100.9 kB / 430.4 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.154, allocations: 4 kB / 430.4 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.326e-05/0.154, allocations: 7.984 kB / 430.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.685e-06/0.154, allocations: 0 / 430.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-06/0.154, allocations: 8 kB / 430.4 MB, free: 344 kB / 350.1 MB Notification: Performance of sorting global known variables: time 7.314e-05/0.1541, allocations: 103.3 kB / 430.5 MB, free: 240 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1541, allocations: 0 / 430.5 MB, free: 240 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002081/0.1543, allocations: 12 kB / 430.5 MB, free: 228 kB / 350.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.0005964/0.1549, allocations: 0.6787 MB / 431.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001476/0.155, allocations: 43.91 kB / 431.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.155, allocations: 0 / 431.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.51e-07/0.155, allocations: 3.938 kB / 431.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.1554, allocations: 51.92 kB / 431.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.1567, allocations: 1.373 MB / 432.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.157, allocations: 0.7079 MB / 433.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.4e-05/0.157, allocations: 4.672 kB / 433.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.699e-05/0.1571, allocations: 15.42 kB / 433.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1571, allocations: 0 / 433.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02488/0.182, allocations: 1.828 MB / 435.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.847/8.029, allocations: 12.05 kB / 435.2 MB, free: 11.45 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 10.788738242001273]