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.001317/0.001317, allocations: 123 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.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.001348/0.001348, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.542/1.542, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.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.001604/0.001604, allocations: 51.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1124, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002269/0.1147, allocations: 0.8562 MB / 418.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003828/0.1151, allocations: 123.6 kB / 418.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.656e-05/0.1152, allocations: 7.938 kB / 418.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.1153, allocations: 11.94 kB / 418.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.1154, allocations: 7.922 kB / 418.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.1156, allocations: 35.91 kB / 418.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.1157, allocations: 43.84 kB / 418.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.1158, allocations: 27.97 kB / 418.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.96e-05/0.1158, allocations: 11.94 kB / 418.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.231e-05/0.1159, allocations: 23.86 kB / 418.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.1159, allocations: 4 kB / 418.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.357e-05/0.116, allocations: 4 kB / 418.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.725e-05/0.116, allocations: 19.92 kB / 418.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.42e-05/0.1161, allocations: 31.8 kB / 419 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.1162, allocations: 67.61 kB / 419 MB, free: 11.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1162, allocations: 0 / 419 MB, free: 11.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1162, allocations: 0 / 419 MB, free: 11.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.1162, allocations: 0 / 419 MB, free: 11.37 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.0005865/0.1168, allocations: 381.4 kB / 419.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.1169, allocations: 12.03 kB / 419.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.558e-05/0.1169, allocations: 34.75 kB / 419.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.305e-05/0.1169, allocations: 16.88 kB / 419.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.1172, allocations: 200.2 kB / 419.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.1172, allocations: 384 / 419.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.1172, allocations: 8.375 kB / 419.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.1175, allocations: 135.8 kB / 419.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.1176, allocations: 7.938 kB / 419.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.1176, allocations: 4 kB / 419.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.1176, allocations: 0 / 419.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.678e-05/0.1176, allocations: 19.98 kB / 419.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001945/0.1178, allocations: 181.4 kB / 420 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.118, allocations: 74.64 kB / 420.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.597e-05/0.1181, allocations: 40.89 kB / 420.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.1181, allocations: 4 kB / 420.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.1181, allocations: 34.55 kB / 420.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.1181, allocations: 0 / 420.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002439/0.1184, allocations: 105.5 kB / 420.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.1184, allocations: 55.41 kB / 420.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.1186, allocations: 140.2 kB / 420.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.1186, allocations: 29.7 kB / 420.5 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.082e-05/0.1187, allocations: 92.28 kB / 420.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.1187, allocations: 0 / 420.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.676e-05/0.1187, allocations: 29.67 kB / 420.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002336/0.1189, allocations: 322.8 kB / 420.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.114e-05/0.119, allocations: 4 kB / 420.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.79e-05/0.119, allocations: 74.78 kB / 421 MB, free: 9.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.1192, allocations: 74.8 kB / 421.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1192, allocations: 0 / 421.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001364/0.1193, allocations: 85.45 kB / 421.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.1193, allocations: 11.94 kB / 421.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1194, allocations: 0 / 421.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.1194, allocations: 4 kB / 421.2 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.189e-05/0.1195, allocations: 28.17 kB / 421.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.1195, allocations: 4 kB / 421.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.216e-05/0.1195, allocations: 0 / 421.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.1195, allocations: 4 kB / 421.2 MB, free: 8.91 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.0001244/0.1196, allocations: 135.9 kB / 421.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.1197, allocations: 81.52 kB / 421.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.198e-05/0.1198, allocations: 12.72 kB / 421.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1198, allocations: 0 / 421.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.1198, allocations: 7.922 kB / 421.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.1198, allocations: 4 kB / 421.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001514/0.12, allocations: 169.7 kB / 421.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.12, allocations: 0 / 421.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.451e-05/0.12, allocations: 23.98 kB / 421.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.243e-06/0.12, allocations: 3.938 kB / 421.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.12, allocations: 0 / 421.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.12, allocations: 192 / 421.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.12, allocations: 0 / 421.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001658/0.1202, allocations: 125.3 kB / 421.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.514e-05/0.1203, allocations: 100.9 kB / 421.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.1203, allocations: 0 / 421.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.475e-05/0.1203, allocations: 4 kB / 421.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-06/0.1203, allocations: 0 / 421.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-06/0.1203, allocations: 0 / 421.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001095/0.1205, allocations: 107.2 kB / 422 MB, free: 8.047 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1205, allocations: 0 / 422 MB, free: 8.047 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000206/0.1207, allocations: 12 kB / 422 MB, free: 8.035 MB / 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.0006024/0.1213, allocations: 0.6904 MB / 422.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.1214, allocations: 39.92 kB / 422.7 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.1214, allocations: 4.562 kB / 422.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.22e-07/0.1214, allocations: 0 / 422.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.1218, allocations: 54.12 kB / 422.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.1231, allocations: 1.367 MB / 424.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.1234, allocations: 0.697 MB / 424.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.195e-05/0.1235, allocations: 12.66 kB / 424.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.264e-05/0.1235, allocations: 15.44 kB / 424.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of SimCode: time 1.083e-06/0.1235, allocations: 0 / 424.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02639/0.1499, allocations: 1.829 MB / 426.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.933/8.083, allocations: 7.078 kB / 426.7 MB, free: 3.266 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.733732891269028]