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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 104.2 kB / 17.59 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001197, allocations: 56.34 kB / 301.3 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1197, allocations: 49.43 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.00323/0.123, allocations: 0.8414 MB / 351.6 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005295/0.1235, allocations: 127.5 kB / 351.7 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.1237, allocations: 0 / 351.7 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.1239, allocations: 3.938 kB / 351.7 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.1241, allocations: 15.86 kB / 351.7 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.1245, allocations: 39.91 kB / 351.8 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001328/0.1247, allocations: 43.84 kB / 351.8 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.1249, allocations: 23.98 kB / 351.8 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.369e-05/0.1249, allocations: 23.86 kB / 351.8 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.738e-05/0.125, allocations: 15.92 kB / 351.9 MB, free: 3.281 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.1251, allocations: 4 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.86e-05/0.1251, allocations: 4 kB / 351.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.833e-05/0.1252, allocations: 19.92 kB / 351.9 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.669e-05/0.1253, allocations: 23.81 kB / 351.9 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.1254, allocations: 59.73 kB / 352 MB, free: 3.172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1254, allocations: 4 kB / 352 MB, free: 3.168 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1254, allocations: 0 / 352 MB, free: 3.168 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.1255, allocations: 0 / 352 MB, free: 3.168 MB / 286.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.0007119/0.1262, allocations: 383.4 kB / 352.3 MB, free: 2.742 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.162e-05/0.1263, allocations: 8.031 kB / 352.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.923e-05/0.1263, allocations: 16.75 kB / 352.4 MB, free: 2.719 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.1267, allocations: 192.2 kB / 352.6 MB, free: 2.492 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.1267, allocations: 384 / 352.6 MB, free: 2.492 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.1267, allocations: 8.375 kB / 352.6 MB, free: 2.484 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003532/0.1271, allocations: 143.8 kB / 352.7 MB, free: 2.332 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1271, allocations: 192 / 352.7 MB, free: 2.332 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.1271, allocations: 3.938 kB / 352.7 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.1271, allocations: 0 / 352.7 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.012e-05/0.1272, allocations: 27.92 kB / 352.7 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002329/0.1274, allocations: 177.5 kB / 352.9 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.1276, allocations: 78.69 kB / 353 MB, free: 1.992 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.6e-05/0.1277, allocations: 40.89 kB / 353 MB, free: 1.949 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.1277, allocations: 7.984 kB / 353 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.1278, allocations: 38.5 kB / 353.1 MB, free: 1.895 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.442e-06/0.1278, allocations: 0 / 353.1 MB, free: 1.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.00026/0.128, allocations: 97.52 kB / 353.2 MB, free: 1.793 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.68e-05/0.1281, allocations: 63.41 kB / 353.2 MB, free: 1.719 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.1283, allocations: 133.8 kB / 353.4 MB, free: 1.578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.1283, allocations: 25.7 kB / 353.4 MB, free: 1.547 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.093e-05/0.1284, allocations: 92.12 kB / 353.5 MB, free: 1.453 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.1284, allocations: 7.906 kB / 353.5 MB, free: 1.445 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.509e-05/0.1284, allocations: 21.72 kB / 353.5 MB, free: 1.418 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1286, allocations: 322.8 kB / 353.8 MB, free: 1.094 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.753e-05/0.1287, allocations: 12 kB / 353.8 MB, free: 1.082 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.895e-05/0.1287, allocations: 62.73 kB / 353.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.271e-05/0.1288, allocations: 78.73 kB / 354 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1288, allocations: 0 / 354 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002466/0.1291, allocations: 93.59 kB / 354.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1291, allocations: 7.938 kB / 354.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.006e-06/0.1291, allocations: 4 kB / 354.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.1292, allocations: 4 kB / 354.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.391e-05/0.1293, allocations: 23.91 kB / 354.1 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.1293, allocations: 0 / 354.1 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.476e-05/0.1293, allocations: 7.938 kB / 354.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.1293, allocations: 4.312 kB / 354.1 MB, free: 0.7461 MB / 286.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.0001201/0.1295, allocations: 130 kB / 354.2 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.1296, allocations: 93.59 kB / 354.3 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.396e-05/0.1296, allocations: 12.72 kB / 354.3 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1297, allocations: 4 kB / 354.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.1297, allocations: 3.984 kB / 354.3 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1297, allocations: 3.938 kB / 354.4 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.1298, allocations: 165.7 kB / 354.5 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.1299, allocations: 4 kB / 354.5 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.587e-05/0.13, allocations: 11.98 kB / 354.5 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.13, allocations: 7.938 kB / 354.5 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-06/0.13, allocations: 4 kB / 354.5 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.13, allocations: 4 kB / 354.5 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.13, allocations: 0 / 354.5 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.1302, allocations: 109 kB / 354.7 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.259e-05/0.1303, allocations: 97 kB / 354.7 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.1303, allocations: 3.938 kB / 354.8 MB, free: 0 / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.88e-05/0.1304, allocations: 4.078 kB / 354.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.306e-06/0.1304, allocations: 0 / 354.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/0.1304, allocations: 8 kB / 354.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.823e-05/0.1305, allocations: 113.8 kB / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1305, allocations: 0 / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002254/0.1307, allocations: 8 kB / 354.9 MB, free: 15.87 MB / 302.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.000132/0.1309, allocations: 103.7 kB / 355 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.131, allocations: 60.22 kB / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1311, allocations: 4.125 kB / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.112e-06/0.1311, allocations: 0 / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.1314, allocations: 50.27 kB / 355.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004127/0.1318, allocations: 203 kB / 355.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.1322, allocations: 0.704 MB / 356 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.183e-05/0.1323, allocations: 7.438 kB / 356 MB, free: 14.68 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1323, allocations: 0 / 356 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Templates: time 0.003018/0.1353, allocations: 0.8741 MB / 356.9 MB, free: 13.81 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/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) Reference file matches