Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 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.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.001759/0.001759, allocations: 106.4 kB / 16.45 MB, free: 6.035 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.002054/0.002054, allocations: 187.8 kB / 17.38 MB, free: 5.562 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.633/1.633, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08403/0.08403, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.001879/0.001879, allocations: 81.36 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.136, allocations: 49.39 MB / 443.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.003242/0.1394, allocations: 0.8481 MB / 444.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005884/0.14, allocations: 115.7 kB / 444.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002038/0.1403, allocations: 7.938 kB / 444.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.1405, allocations: 3.938 kB / 444.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.1407, allocations: 15.92 kB / 444.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.141, allocations: 35.91 kB / 444.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.1411, allocations: 47.83 kB / 444.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.1413, allocations: 27.92 kB / 444.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.048e-05/0.1413, allocations: 15.92 kB / 444.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.398e-05/0.1414, allocations: 23.86 kB / 444.7 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.1415, allocations: 8 kB / 444.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.736e-05/0.1415, allocations: 4 kB / 444.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.84e-05/0.1416, allocations: 11.98 kB / 444.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.696e-05/0.1416, allocations: 27.75 kB / 444.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.1419, allocations: 67.61 kB / 444.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1419, allocations: 0 / 444.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1419, allocations: 0 / 444.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.1419, allocations: 4 kB / 444.8 MB, free: 15.23 MB / 334.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.0007457/0.1427, allocations: 375.1 kB / 445.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.1427, allocations: 8.031 kB / 445.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.261e-05/0.1428, allocations: 20.89 kB / 445.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.1431, allocations: 200.2 kB / 445.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.1431, allocations: 4.312 kB / 445.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.1431, allocations: 8.375 kB / 445.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003672/0.1435, allocations: 143.7 kB / 445.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1435, allocations: 4.188 kB / 445.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.1435, allocations: 7.938 kB / 445.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.1435, allocations: 0 / 445.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.906e-05/0.1436, allocations: 19.98 kB / 445.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001971/0.1438, allocations: 169.7 kB / 445.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.1441, allocations: 86.56 kB / 445.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.248e-05/0.1442, allocations: 40.89 kB / 445.9 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.1442, allocations: 4 kB / 445.9 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.291e-05/0.1443, allocations: 34.56 kB / 445.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.233e-06/0.1443, allocations: 0 / 445.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002789/0.1446, allocations: 101.7 kB / 446 MB, free: 13.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.1447, allocations: 67.38 kB / 446.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.1449, allocations: 141.7 kB / 446.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.1449, allocations: 29.7 kB / 446.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.277e-05/0.145, allocations: 88.14 kB / 446.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.145, allocations: 11.92 kB / 446.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.694e-05/0.1451, allocations: 21.72 kB / 446.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1452, allocations: 322.8 kB / 446.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.443e-05/0.1453, allocations: 8 kB / 446.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.493e-05/0.1454, allocations: 62.8 kB / 446.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.803e-05/0.1455, allocations: 78.8 kB / 446.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1455, allocations: 0 / 446.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001509/0.1456, allocations: 93.45 kB / 446.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.1457, allocations: 7.938 kB / 446.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1457, allocations: 4 kB / 446.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1457, allocations: 256 / 446.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.389e-05/0.1458, allocations: 23.98 kB / 447 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1458, allocations: 3.938 kB / 447 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.952e-05/0.1459, allocations: 11.95 kB / 447 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.1459, allocations: 4 kB / 447 MB, free: 12.79 MB / 334.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.0001136/0.146, allocations: 125.8 kB / 447.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.1461, allocations: 89.52 kB / 447.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.095e-05/0.1462, allocations: 8.719 kB / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1462, allocations: 4 kB / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1462, allocations: 4 kB / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1462, allocations: 3.984 kB / 447.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.1464, allocations: 169.6 kB / 447.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1464, allocations: 0 / 447.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.514e-05/0.1464, allocations: 15.98 kB / 447.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1465, allocations: 3.938 kB / 447.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.1465, allocations: 8 kB / 447.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1465, allocations: 192 / 447.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1465, allocations: 0 / 447.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001591/0.1466, allocations: 113.4 kB / 447.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.26e-05/0.1467, allocations: 101 kB / 447.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1468, allocations: 3.938 kB / 447.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.305e-05/0.1468, allocations: 7.938 kB / 447.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.396e-06/0.1468, allocations: 0 / 447.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.1468, allocations: 4 kB / 447.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001152/0.1469, allocations: 107.2 kB / 447.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1469, allocations: 0 / 447.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002106/0.1471, allocations: 8 kB / 447.7 MB, free: 11.93 MB / 334.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.0001369/0.1473, allocations: 99.25 kB / 447.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001689/0.1475, allocations: 47.91 kB / 447.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.1475, allocations: 0 / 447.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.1475, allocations: 0 / 447.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004056/0.1479, allocations: 56 kB / 447.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003536/0.1483, allocations: 173.8 kB / 448.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.1487, allocations: 0.7002 MB / 448.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.374e-05/0.1488, allocations: 4.672 kB / 448.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.108e-05/0.1488, allocations: 11.44 kB / 448.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1488, allocations: 0 / 448.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of Templates: time 0.003397/0.1522, allocations: 0.6914 MB / 449.5 MB, free: 10.09 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches