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.001263/0.001263, allocations: 110 kB / 16.92 MB, free: 6.332 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.001448/0.001448, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.575/1.575, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 58.94 kB / 300.6 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1373, allocations: 49.43 MB / 350.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002673/0.14, allocations: 0.8327 MB / 350.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004166/0.1405, allocations: 127.6 kB / 351 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1406, allocations: 0 / 351 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.1407, allocations: 11.88 kB / 351 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.1408, allocations: 3.938 kB / 351 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000228/0.1411, allocations: 51.81 kB / 351.1 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.1412, allocations: 35.92 kB / 351.1 MB, free: 3.348 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.1414, allocations: 23.98 kB / 351.1 MB, free: 3.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.832e-05/0.1414, allocations: 23.84 kB / 351.2 MB, free: 3.301 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.324e-05/0.1415, allocations: 19.92 kB / 351.2 MB, free: 3.281 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.1416, allocations: 4 kB / 351.2 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.388e-05/0.1416, allocations: 0 / 351.2 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.726e-05/0.1416, allocations: 19.94 kB / 351.2 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.617e-05/0.1417, allocations: 27.8 kB / 351.2 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.1418, allocations: 59.73 kB / 351.3 MB, free: 3.172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1419, allocations: 0 / 351.3 MB, free: 3.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1419, allocations: 4 kB / 351.3 MB, free: 3.168 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.1419, allocations: 0 / 351.3 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.0005612/0.1424, allocations: 379.4 kB / 351.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.1425, allocations: 8.031 kB / 351.7 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.031e-05/0.1425, allocations: 12.75 kB / 351.7 MB, free: 2.727 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/0.1428, allocations: 196.1 kB / 351.9 MB, free: 2.496 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.1428, allocations: 8.312 kB / 351.9 MB, free: 2.488 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.1428, allocations: 384 / 351.9 MB, free: 2.488 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.1431, allocations: 143.8 kB / 352 MB, free: 2.336 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.1431, allocations: 4.125 kB / 352 MB, free: 2.332 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.1432, allocations: 3.938 kB / 352 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1432, allocations: 4 kB / 352 MB, free: 2.324 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.317e-05/0.1432, allocations: 23.98 kB / 352.1 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000187/0.1434, allocations: 177.5 kB / 352.2 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001555/0.1436, allocations: 78.73 kB / 352.3 MB, free: 1.992 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.637e-05/0.1437, allocations: 48.78 kB / 352.4 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.1437, allocations: 0 / 352.4 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.1437, allocations: 30.56 kB / 352.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.1437, allocations: 0 / 352.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002481/0.144, allocations: 105.5 kB / 352.5 MB, free: 1.793 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.527e-05/0.1441, allocations: 59.41 kB / 352.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.1443, allocations: 144.8 kB / 352.7 MB, free: 1.574 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.1443, allocations: 25.7 kB / 352.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.516e-05/0.1444, allocations: 88.14 kB / 352.8 MB, free: 1.453 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/0.1444, allocations: 7.891 kB / 352.8 MB, free: 1.445 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.154e-05/0.1445, allocations: 29.66 kB / 352.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.1447, allocations: 322.8 kB / 353.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.449e-05/0.1447, allocations: 4 kB / 353.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.228e-05/0.1448, allocations: 66.86 kB / 353.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.145, allocations: 70.75 kB / 353.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.145, allocations: 4 kB / 353.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000183/0.1452, allocations: 97.64 kB / 353.4 MB, free: 0.793 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.1452, allocations: 15.88 kB / 353.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1452, allocations: 0 / 353.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.1453, allocations: 4 kB / 353.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.1454, allocations: 12 kB / 353.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/0.1454, allocations: 7.984 kB / 353.4 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.788e-05/0.1455, allocations: 3.938 kB / 353.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.1455, allocations: 4 kB / 353.4 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.0001745/0.1457, allocations: 135 kB / 353.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.1458, allocations: 85.66 kB / 353.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.901e-05/0.1458, allocations: 12.72 kB / 353.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1458, allocations: 192 / 353.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.1459, allocations: 0 / 353.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.1459, allocations: 7.875 kB / 353.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.146, allocations: 177.6 kB / 353.8 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1461, allocations: 0 / 353.8 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.65e-05/0.1461, allocations: 12 kB / 353.9 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.1461, allocations: 3.938 kB / 353.9 MB, free: 260 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.1462, allocations: 3.984 kB / 353.9 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1462, allocations: 7.938 kB / 353.9 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1462, allocations: 0 / 353.9 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.1463, allocations: 105 kB / 354 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.1464, allocations: 97 kB / 354.1 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.1465, allocations: 7.922 kB / 354.1 MB, free: 0 / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.133e-05/0.1465, allocations: 0 / 354.1 MB, free: 0 / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-06/0.1465, allocations: 0 / 354.1 MB, free: 0 / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.964e-06/0.1466, allocations: 4.047 kB / 354.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.34e-05/0.1467, allocations: 114.2 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1467, allocations: 0 / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002312/0.1469, allocations: 12 kB / 354.2 MB, free: 15.88 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.0001838/0.1471, allocations: 107.7 kB / 354.3 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002024/0.1473, allocations: 55.86 kB / 354.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1473, allocations: 0.5 kB / 354.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.1473, allocations: 4 kB / 354.4 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.0004274/0.1478, allocations: 51.94 kB / 354.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004351/0.1482, allocations: 172.8 kB / 354.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004061/0.1486, allocations: 0.7002 MB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.064e-05/0.1487, allocations: 8.672 kB / 355.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.112e-05/0.1487, allocations: 11.44 kB / 355.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1487, allocations: 0 / 355.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of Templates: time 0.003497/0.1522, allocations: 0.6943 MB / 356 MB, free: 14.02 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/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