Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9137/0.9137, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.202e-05/2.368e-05, allocations: 3.125 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001771/0.001794, allocations: 0.8644 MB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003092/0.002104, allocations: 119.6 kB / 325.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.184e-05/0.002185, allocations: 0 / 325.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.002291, allocations: 15.8 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.002424, allocations: 4 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000207/0.002631, allocations: 39.89 kB / 325.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.002734, allocations: 47.84 kB / 325.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.002842, allocations: 11.98 kB / 325.6 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.184e-05/0.002884, allocations: 19.92 kB / 325.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.553e-05/0.00296, allocations: 23.95 kB / 325.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.32e-05/0.002983, allocations: 4 kB / 325.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.949e-06/0.002993, allocations: 4 kB / 325.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.216e-05/0.003035, allocations: 11.94 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.244e-05/0.003067, allocations: 19.92 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.003186, allocations: 63.67 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.003189, allocations: 0 / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.00319, allocations: 0 / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.003195, allocations: 4 kB / 325.8 MB, free: 14.66 MB / 298.7 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.0004024/0.003597, allocations: 302 kB / 326.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.003637, allocations: 11.98 kB / 326.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.813e-05/0.003665, allocations: 34.73 kB / 326.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.488e-05/0.00369, allocations: 16.84 kB / 326.1 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.003859, allocations: 137.6 kB / 326.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-06/0.003868, allocations: 8.312 kB / 326.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.003879, allocations: 4.375 kB / 326.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.004119, allocations: 147.8 kB / 326.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.004127, allocations: 192 / 326.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.004136, allocations: 384 / 326.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.004142, allocations: 8.125 kB / 326.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.738e-05/0.004179, allocations: 19.98 kB / 326.4 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001201/0.004299, allocations: 132.8 kB / 326.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.004421, allocations: 74.64 kB / 326.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.808e-05/0.004469, allocations: 40.89 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.296e-06/0.004477, allocations: 4 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.004497, allocations: 30.56 kB / 326.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.62e-07/0.004498, allocations: 0 / 326.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001846/0.004683, allocations: 109.7 kB / 326.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.004735, allocations: 63.33 kB / 326.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.432e-05/0.004829, allocations: 144.8 kB / 327 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.00484, allocations: 33.64 kB / 327.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.26e-05/0.004873, allocations: 84.14 kB / 327.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.004887, allocations: 7.922 kB / 327.1 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.716e-05/0.004914, allocations: 17.72 kB / 327.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.259e-05/0.004987, allocations: 314.8 kB / 327.5 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-06/0.004996, allocations: 4 kB / 327.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.169e-05/0.005007, allocations: 15.98 kB / 327.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.322e-05/0.005031, allocations: 12.8 kB / 327.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.005032, allocations: 0 / 327.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.546e-05/0.005078, allocations: 41.66 kB / 327.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.00509, allocations: 8 kB / 327.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.005095, allocations: 0 / 327.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.005108, allocations: 3.938 kB / 327.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.689e-05/0.005155, allocations: 0 / 327.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.005159, allocations: 8.094 kB / 327.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.014e-05/0.00517, allocations: 0 / 327.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-06/0.005174, allocations: 0 / 327.6 MB, free: 12.66 MB / 298.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: 2 ($CLKPRE.unitDelay1.u,unitDelay1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 6.612e-05/0.00524, allocations: 121.8 kB / 327.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.359e-05/0.005303, allocations: 77.58 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.977e-05/0.005333, allocations: 20.77 kB / 327.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.005336, allocations: 3.938 kB / 327.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.00534, allocations: 0 / 327.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.005344, allocations: 0 / 327.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.775e-05/0.005412, allocations: 140.7 kB / 327.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.005413, allocations: 4 kB / 327.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.586e-05/0.005458, allocations: 12 kB / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.005461, allocations: 0 / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.005467, allocations: 0 / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.005469, allocations: 3.938 kB / 327.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.00547, allocations: 0 / 327.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.797e-05/0.005558, allocations: 117 kB / 328 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.569e-05/0.005593, allocations: 19.92 kB / 328.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.005606, allocations: 4 kB / 328.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.066e-05/0.005617, allocations: 3.938 kB / 328.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.435e-06/0.005619, allocations: 3.938 kB / 328.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.005624, allocations: 8 kB / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.73e-05/0.005672, allocations: 107.2 kB / 328.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005672, allocations: 0 / 328.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001225/0.005794, allocations: 8 kB / 328.2 MB, free: 11.94 MB / 298.7 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.0003187/0.006113, allocations: 0.6749 MB / 328.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.887e-05/0.006192, allocations: 27.92 kB / 328.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.006193, allocations: 0 / 328.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.006194, allocations: 0 / 328.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.006432, allocations: 63.03 kB / 329 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007064/0.007139, allocations: 1.22 MB / 330.2 MB, free: 9.836 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.565e-05/0.007194, allocations: 87 kB / 330.3 MB, free: 9.73 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.59e-05/0.00721, allocations: 4 kB / 330.3 MB, free: 9.727 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.007248, allocations: 16.48 kB / 330.3 MB, free: 9.711 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.007249, allocations: 4 kB / 330.3 MB, free: 9.707 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.02512, allocations: 2.439 MB / 332.7 MB, free: 7.379 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.747/6.772, allocations: 3.984 kB / 332.7 MB, free: 7.375 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.574050629511476]