Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001227/0.001228, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 60.25 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1347, allocations: 50.53 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002596/0.1374, allocations: 0.8644 MB / 359.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003564/0.1377, allocations: 111.7 kB / 359.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.184e-05/0.1378, allocations: 0 / 359.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.943e-05/0.1379, allocations: 3.938 kB / 359.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.138, allocations: 7.922 kB / 359.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.1383, allocations: 39.91 kB / 359.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.63e-05/0.1384, allocations: 43.84 kB / 360 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.1385, allocations: 23.97 kB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.846e-05/0.1385, allocations: 11.94 kB / 360 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.783e-05/0.1386, allocations: 19.86 kB / 360 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.1386, allocations: 4 kB / 360 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.24e-05/0.1386, allocations: 4 kB / 360 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.035e-05/0.1387, allocations: 19.97 kB / 360.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.616e-05/0.1387, allocations: 23.81 kB / 360.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.1388, allocations: 59.69 kB / 360.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1388, allocations: 4 kB / 360.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1388, allocations: 0 / 360.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1389, allocations: 0 / 360.1 MB, free: 12.08 MB / 302.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.000459/0.1393, allocations: 363.2 kB / 360.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.1394, allocations: 12.03 kB / 360.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.909e-05/0.1394, allocations: 8.844 kB / 360.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.1397, allocations: 192.2 kB / 360.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1397, allocations: 8.375 kB / 360.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.1397, allocations: 4.375 kB / 360.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.14, allocations: 139.6 kB / 360.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.14, allocations: 192 / 360.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.14, allocations: 3.938 kB / 360.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.14, allocations: 8 kB / 360.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.638e-05/0.1401, allocations: 16 kB / 360.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.1403, allocations: 169.6 kB / 361 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.1404, allocations: 62.7 kB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.376e-05/0.1405, allocations: 40.84 kB / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.1405, allocations: 0 / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.1405, allocations: 34.56 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 8.91e-07/0.1405, allocations: 0 / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002045/0.1408, allocations: 93.45 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.336e-05/0.1408, allocations: 59.41 kB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.141, allocations: 136.9 kB / 361.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.141, allocations: 33.64 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.6e-05/0.1411, allocations: 84.14 kB / 361.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.1411, allocations: 3.984 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.891e-05/0.1412, allocations: 33.62 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1413, allocations: 318.8 kB / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.255e-05/0.1413, allocations: 8 kB / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.98e-05/0.1414, allocations: 54.86 kB / 362 MB, free: 9.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.664e-05/0.1415, allocations: 78.75 kB / 362.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1415, allocations: 4 kB / 362.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000124/0.1416, allocations: 93.42 kB / 362.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1417, allocations: 8 kB / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1417, allocations: 3.938 kB / 362.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.1417, allocations: 4 kB / 362.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-05/0.1417, allocations: 0 / 362.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1417, allocations: 8.188 kB / 362.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.603e-05/0.1418, allocations: 11.91 kB / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.1418, allocations: 4 kB / 362.2 MB, free: 9.746 MB / 302.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 (integerConstant.y,xor.y,xor.u2,xor.u1,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 9.274e-05/0.1419, allocations: 129.8 kB / 362.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.476e-05/0.142, allocations: 69.59 kB / 362.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.103e-05/0.142, allocations: 12.31 kB / 362.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.142, allocations: 8 kB / 362.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.142, allocations: 3.984 kB / 362.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1421, allocations: 3.938 kB / 362.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.1422, allocations: 169.7 kB / 362.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1422, allocations: 3.984 kB / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.117e-06/0.1422, allocations: 0 / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.77e-06/0.1422, allocations: 4 kB / 362.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.1422, allocations: 3.938 kB / 362.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1422, allocations: 0 / 362.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1422, allocations: 0 / 362.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001277/0.1424, allocations: 101 kB / 362.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-05/0.1425, allocations: 92.94 kB / 362.8 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.1425, allocations: 11.94 kB / 362.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.737e-05/0.1425, allocations: 4 kB / 362.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-06/0.1425, allocations: 0 / 362.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.1425, allocations: 0 / 362.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.069e-05/0.1426, allocations: 111.4 kB / 362.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1426, allocations: 0 / 362.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001968/0.1428, allocations: 7.938 kB / 362.9 MB, free: 8.922 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,xor.u1,xor.u2,xor.y,integerConstant.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.0001138/0.1429, allocations: 107.2 kB / 363 MB, free: 8.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001226/0.143, allocations: 39.92 kB / 363.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1431, allocations: 0 / 363.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.72e-07/0.1431, allocations: 0 / 363.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003007/0.1434, allocations: 40.66 kB / 363.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003021/0.1437, allocations: 164.8 kB / 363.3 MB, free: 8.535 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.144, allocations: 0.6978 MB / 364 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.924e-05/0.144, allocations: 15.94 kB / 364 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.144, allocations: 11.44 kB / 364 MB, free: 7.789 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.144, allocations: 0 / 364 MB, free: 7.789 MB / 302.1 MB Notification: Performance of Templates: time 0.002752/0.1468, allocations: 0.6219 MB / 364.6 MB, free: 7.176 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches