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.001522/0.001522, allocations: 101.2 kB / 16.02 MB, free: 6.352 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.001585/0.001586, allocations: 199.1 kB / 16.95 MB, free: 6.172 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.85/1.85, allocations: 205.1 MB / 222.8 MB, free: 4.695 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.08645/0.08645, allocations: 12.59 MB / 282.7 MB, free: 8.812 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.001809/0.001809, allocations: 91.86 kB / 343 MB, free: 21.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1319, allocations: 49.4 MB / 392.4 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.002703/0.1347, allocations: 0.9102 MB / 393.3 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003808/0.1351, allocations: 123.6 kB / 393.4 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.1352, allocations: 0 / 393.4 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.1353, allocations: 3.938 kB / 393.4 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.1355, allocations: 7.984 kB / 393.4 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.1357, allocations: 39.91 kB / 393.5 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.1359, allocations: 35.92 kB / 393.5 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.136, allocations: 31.92 kB / 393.5 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.676e-05/0.136, allocations: 11.94 kB / 393.5 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.258e-05/0.1361, allocations: 23.91 kB / 393.6 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.722e-05/0.1362, allocations: 4 kB / 393.6 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.544e-05/0.1362, allocations: 4 kB / 393.6 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.087e-05/0.1363, allocations: 15.92 kB / 393.6 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.736e-05/0.1363, allocations: 35.73 kB / 393.6 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.1365, allocations: 51.81 kB / 393.7 MB, free: 2.305 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1365, allocations: 4 kB / 393.7 MB, free: 2.301 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1365, allocations: 0 / 393.7 MB, free: 2.301 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1365, allocations: 0 / 393.7 MB, free: 2.301 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.0005716/0.1371, allocations: 391.2 kB / 394.1 MB, free: 1.867 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.1371, allocations: 8.031 kB / 394.1 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.1372, allocations: 12.84 kB / 394.1 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.1374, allocations: 181.1 kB / 394.3 MB, free: 1.633 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.1374, allocations: 8.375 kB / 394.3 MB, free: 1.625 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.1374, allocations: 4.375 kB / 394.3 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.1378, allocations: 147.7 kB / 394.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.1378, allocations: 192 / 394.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.1378, allocations: 7.938 kB / 394.4 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1378, allocations: 0 / 394.4 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.123e-05/0.1379, allocations: 19.98 kB / 394.4 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001795/0.138, allocations: 177.5 kB / 394.6 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.1382, allocations: 78.64 kB / 394.7 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.152e-05/0.1383, allocations: 44.89 kB / 394.7 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.1383, allocations: 3.984 kB / 394.7 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.1384, allocations: 30.56 kB / 394.8 MB, free: 1.039 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.243e-06/0.1384, allocations: 4 kB / 394.8 MB, free: 1.035 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002233/0.1386, allocations: 105.7 kB / 394.9 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.1387, allocations: 59.34 kB / 394.9 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.1388, allocations: 149 kB / 395.1 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.1388, allocations: 25.7 kB / 395.1 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.141e-05/0.1389, allocations: 88.12 kB / 395.2 MB, free: 0.582 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.1389, allocations: 4 kB / 395.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.139, allocations: 25.72 kB / 395.2 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1391, allocations: 318.8 kB / 395.5 MB, free: 232 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.984e-05/0.1391, allocations: 8 kB / 395.5 MB, free: 224 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.319e-05/0.1392, allocations: 58.86 kB / 395.6 MB, free: 140 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.801e-05/0.1393, allocations: 82.73 kB / 395.7 MB, free: 32 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1393, allocations: 0 / 395.7 MB, free: 32 kB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001358/0.1394, allocations: 89.58 kB / 395.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.1394, allocations: 11.94 kB / 395.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1395, allocations: 0 / 395.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1395, allocations: 4 kB / 395.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.545e-05/0.1396, allocations: 15.98 kB / 395.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.1396, allocations: 4 kB / 395.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.588e-05/0.1396, allocations: 7.938 kB / 395.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.1396, allocations: 4 kB / 395.8 MB, free: 15.89 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 (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.0001072/0.1397, allocations: 137.9 kB / 395.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1399, allocations: 81.53 kB / 396 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.314e-05/0.1399, allocations: 12.72 kB / 396 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1399, allocations: 3.984 kB / 396 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.1399, allocations: 7.984 kB / 396 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.1399, allocations: 0 / 396 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.1401, allocations: 173.6 kB / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1401, allocations: 0 / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.808e-05/0.1401, allocations: 19.92 kB / 396.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.1402, allocations: 3.938 kB / 396.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.1402, allocations: 8.188 kB / 396.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1402, allocations: 0 / 396.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1402, allocations: 4.328 kB / 396.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001497/0.1403, allocations: 116.9 kB / 396.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.691e-05/0.1404, allocations: 92.94 kB / 396.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.1405, allocations: 7.938 kB / 396.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.271e-05/0.1405, allocations: 4 kB / 396.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.356e-06/0.1405, allocations: 0 / 396.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.1405, allocations: 4 kB / 396.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.871e-05/0.1406, allocations: 111.2 kB / 396.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1406, allocations: 0 / 396.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002053/0.1408, allocations: 12 kB / 396.6 MB, free: 15 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.0001206/0.1409, allocations: 99.19 kB / 396.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.1411, allocations: 52.3 kB / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1411, allocations: 4.125 kB / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.305e-06/0.1411, allocations: 3.984 kB / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.1414, allocations: 47.95 kB / 396.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003525/0.1418, allocations: 185.5 kB / 397 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.1421, allocations: 0.7039 MB / 397.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.891e-05/0.1422, allocations: 4.672 kB / 397.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.675e-05/0.1422, allocations: 19.36 kB / 397.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1422, allocations: 0 / 397.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of Templates: time 0.003308/0.1456, allocations: 0.693 MB / 398.4 MB, free: 13.13 MB / 302.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches