Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 108.9 kB / 16.03 MB, free: 6.324 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.001536/0.001537, allocations: 191.1 kB / 16.95 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.822/1.822, allocations: 205.1 MB / 222.8 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08559/0.08559, allocations: 12.6 MB / 282.7 MB, free: 8.781 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 91.86 kB / 343 MB, free: 21.08 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1522, allocations: 49.4 MB / 392.4 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock): time 0.002749/0.155, allocations: 0.9109 MB / 393.3 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003874/0.1555, allocations: 123.6 kB / 393.4 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1556, allocations: 3.938 kB / 393.4 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.376e-05/0.1557, allocations: 0 / 393.4 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.1558, allocations: 11.94 kB / 393.4 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.1562, allocations: 23.97 kB / 393.5 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002654/0.1564, allocations: 43.84 kB / 393.5 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.1566, allocations: 24.28 kB / 393.5 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.256e-05/0.1566, allocations: 15.92 kB / 393.5 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.057e-05/0.1567, allocations: 15.92 kB / 393.6 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.1567, allocations: 4 kB / 393.6 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.642e-05/0.1567, allocations: 4 kB / 393.6 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.009e-05/0.1568, allocations: 15.92 kB / 393.6 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.743e-05/0.1569, allocations: 27.8 kB / 393.6 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.1571, allocations: 47.83 kB / 393.6 MB, free: 2.328 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.128e-05/0.1571, allocations: 0 / 393.6 MB, free: 2.328 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.997e-06/0.1571, allocations: 3.938 kB / 393.7 MB, free: 2.324 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.445e-06/0.1571, allocations: 0 / 393.7 MB, free: 2.324 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.0006557/0.1578, allocations: 379.1 kB / 394 MB, free: 1.902 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.1578, allocations: 8.031 kB / 394 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.1579, allocations: 8.844 kB / 394 MB, free: 1.887 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.1582, allocations: 192.2 kB / 394.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.1582, allocations: 4.375 kB / 394.2 MB, free: 1.656 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.1582, allocations: 4.375 kB / 394.2 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.1586, allocations: 131.8 kB / 394.4 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.1586, allocations: 192 / 394.4 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.1586, allocations: 11.92 kB / 394.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.301e-06/0.1586, allocations: 4 kB / 394.4 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.649e-05/0.1587, allocations: 12 kB / 394.4 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000201/0.1589, allocations: 177.5 kB / 394.6 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.1591, allocations: 70.69 kB / 394.6 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.467e-05/0.1591, allocations: 44.78 kB / 394.7 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.1592, allocations: 3.984 kB / 394.7 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.1592, allocations: 30.56 kB / 394.7 MB, free: 1.094 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.1592, allocations: 0 / 394.7 MB, free: 1.094 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002372/0.1595, allocations: 101.5 kB / 394.8 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.88e-05/0.1595, allocations: 55.34 kB / 394.9 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.1597, allocations: 133.8 kB / 395 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.1597, allocations: 29.7 kB / 395 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.755e-05/0.1598, allocations: 80.14 kB / 395.1 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.1598, allocations: 11.89 kB / 395.1 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.041e-05/0.1599, allocations: 21.72 kB / 395.1 MB, free: 0.625 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.16, allocations: 326.8 kB / 395.5 MB, free: 304 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.939e-05/0.1601, allocations: 4 kB / 395.5 MB, free: 300 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.43e-05/0.1601, allocations: 58.86 kB / 395.5 MB, free: 216 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.1602, allocations: 74.75 kB / 395.6 MB, free: 116 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1602, allocations: 0 / 395.6 MB, free: 116 kB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001228/0.1604, allocations: 93.39 kB / 395.7 MB, free: 16 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.823e-05/0.1604, allocations: 8 kB / 395.7 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.1604, allocations: 3.938 kB / 395.7 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.1605, allocations: 4 kB / 395.7 MB, free: 0 / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.287e-05/0.1605, allocations: 4.047 kB / 395.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.1605, allocations: 0 / 395.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.608e-05/0.1606, allocations: 8 kB / 395.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.1606, allocations: 4 kB / 395.7 MB, free: 15.98 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 0.0001475/0.1607, allocations: 130 kB / 395.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.036e-05/0.1608, allocations: 65.61 kB / 395.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.067e-05/0.1609, allocations: 16.3 kB / 395.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1609, allocations: 4 kB / 395.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.1609, allocations: 0 / 395.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1609, allocations: 0 / 395.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.1611, allocations: 169.6 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.1611, allocations: 0 / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.693e-05/0.1611, allocations: 11.92 kB / 396.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.1611, allocations: 0 / 396.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.1611, allocations: 12.12 kB / 396.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.1611, allocations: 0 / 396.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1611, allocations: 7.875 kB / 396.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000164/0.1613, allocations: 93.03 kB / 396.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.08e-05/0.1614, allocations: 93 kB / 396.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.907e-05/0.1614, allocations: 7.938 kB / 396.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.568e-05/0.1615, allocations: 4 kB / 396.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-06/0.1615, allocations: 0 / 396.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.1615, allocations: 8 kB / 396.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001195/0.1616, allocations: 103.8 kB / 396.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1616, allocations: 0 / 396.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002021/0.1618, allocations: 8 kB / 396.4 MB, free: 15.16 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.0001366/0.162, allocations: 103.1 kB / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001511/0.1621, allocations: 44.28 kB / 396.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1621, allocations: 4.125 kB / 396.6 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.1622, allocations: 4 kB / 396.6 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004695/0.1626, allocations: 44.38 kB / 396.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003934/0.163, allocations: 177.7 kB / 396.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.1634, allocations: 0.7046 MB / 397.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.269e-05/0.1634, allocations: 3.984 kB / 397.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.925e-05/0.1635, allocations: 11.44 kB / 397.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1635, allocations: 0 / 397.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of Templates: time 0.003613/0.1671, allocations: 0.6087 MB / 398.1 MB, free: 13.41 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches