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.01018/0.01018, allocations: 93.11 kB / 15.91 MB, free: 6.273 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.001972/0.001972, allocations: 200.2 kB / 16.84 MB, free: 6.188 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.673/1.673, allocations: 205.1 MB / 222.7 MB, free: 4.723 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.08792/0.08792, allocations: 12.58 MB / 282.6 MB, free: 8.84 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.001881/0.001882, allocations: 83.88 kB / 342.8 MB, free: 21.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1274, allocations: 49.4 MB / 392.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock): time 0.003352/0.1308, allocations: 0.9264 MB / 393.1 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004745/0.1313, allocations: 115.7 kB / 393.2 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.1315, allocations: 0 / 393.2 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.807e-05/0.1316, allocations: 0 / 393.2 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.1318, allocations: 11.92 kB / 393.2 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.1321, allocations: 35.91 kB / 393.3 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.1323, allocations: 35.92 kB / 393.3 MB, free: 2.582 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.1324, allocations: 16.27 kB / 393.3 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.029e-05/0.1325, allocations: 19.88 kB / 393.3 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.136e-05/0.1325, allocations: 15.92 kB / 393.4 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.1325, allocations: 0 / 393.4 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.383e-05/0.1326, allocations: 7.938 kB / 393.4 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.112e-05/0.1326, allocations: 11.98 kB / 393.4 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.584e-05/0.1327, allocations: 31.78 kB / 393.4 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.1328, allocations: 47.83 kB / 393.5 MB, free: 2.434 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1328, allocations: 0 / 393.5 MB, free: 2.434 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.1328, allocations: 0 / 393.5 MB, free: 2.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1329, allocations: 3.938 kB / 393.5 MB, free: 2.43 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.0004701/0.1333, allocations: 371.2 kB / 393.8 MB, free: 2.016 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.1334, allocations: 8.031 kB / 393.8 MB, free: 2.008 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.8e-05/0.1334, allocations: 8.844 kB / 393.8 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/0.1336, allocations: 192.1 kB / 394 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.1336, allocations: 8.312 kB / 394 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.356e-05/0.1337, allocations: 12.38 kB / 394 MB, free: 1.754 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.1339, allocations: 123.9 kB / 394.2 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.1339, allocations: 4.125 kB / 394.2 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.134, allocations: 7.938 kB / 394.2 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.134, allocations: 0 / 394.2 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.263e-05/0.134, allocations: 19.98 kB / 394.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000159/0.1342, allocations: 173.6 kB / 394.4 MB, free: 1.371 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.1343, allocations: 62.66 kB / 394.4 MB, free: 1.301 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.863e-05/0.1344, allocations: 40.89 kB / 394.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.236e-06/0.1344, allocations: 0 / 394.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.1345, allocations: 30.56 kB / 394.5 MB, free: 1.219 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.1345, allocations: 7.938 kB / 394.5 MB, free: 1.211 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001986/0.1347, allocations: 97.45 kB / 394.6 MB, free: 1.109 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.1347, allocations: 59.39 kB / 394.7 MB, free: 1.039 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.1348, allocations: 137.8 kB / 394.8 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.1349, allocations: 25.7 kB / 394.8 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.88e-05/0.1349, allocations: 84.14 kB / 394.9 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.1349, allocations: 3.906 kB / 394.9 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.135, allocations: 29.7 kB / 394.9 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1351, allocations: 318.8 kB / 395.2 MB, free: 428 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.202e-05/0.1351, allocations: 11.98 kB / 395.3 MB, free: 416 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.908e-05/0.1352, allocations: 54.81 kB / 395.3 MB, free: 336 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.369e-05/0.1353, allocations: 74.8 kB / 395.4 MB, free: 236 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1353, allocations: 0 / 395.4 MB, free: 236 kB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001211/0.1354, allocations: 93.41 kB / 395.5 MB, free: 136 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1355, allocations: 8 kB / 395.5 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.1355, allocations: 3.938 kB / 395.5 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1355, allocations: 4 kB / 395.5 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.233e-05/0.1355, allocations: 7.938 kB / 395.5 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.1355, allocations: 3.984 kB / 395.5 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.308e-05/0.1356, allocations: 4 kB / 395.5 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.1356, allocations: 8 kB / 395.5 MB, free: 96 kB / 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 (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.742e-05/0.1357, allocations: 126.1 kB / 395.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.433e-05/0.1358, allocations: 73.53 kB / 395.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.24e-05/0.1358, allocations: 12.31 kB / 395.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.1359, allocations: 4 kB / 395.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1359, allocations: 0 / 395.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1359, allocations: 3.984 kB / 395.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.136, allocations: 177.5 kB / 395.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.136, allocations: 0 / 395.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.173e-05/0.136, allocations: 4 kB / 395.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.136, allocations: 4 kB / 395.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1361, allocations: 3.938 kB / 395.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1361, allocations: 0 / 395.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1361, allocations: 0 / 395.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001147/0.1362, allocations: 101 kB / 396 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.09e-05/0.1363, allocations: 93 kB / 396.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.1363, allocations: 8.125 kB / 396.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.851e-05/0.1363, allocations: 4 kB / 396.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.673e-06/0.1363, allocations: 7.938 kB / 396.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.1364, allocations: 0 / 396.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.515e-05/0.1364, allocations: 103.3 kB / 396.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1364, allocations: 0 / 396.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002042/0.1366, allocations: 4 kB / 396.2 MB, free: 15.28 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.0001542/0.1368, allocations: 99.25 kB / 396.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001289/0.1369, allocations: 44.34 kB / 396.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1369, allocations: 4.062 kB / 396.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.137, allocations: 0 / 396.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.1374, allocations: 44.94 kB / 396.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003213/0.1377, allocations: 179.3 kB / 396.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.1381, allocations: 0.7011 MB / 397.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.273e-05/0.1381, allocations: 4 kB / 397.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.209e-05/0.1381, allocations: 11.44 kB / 397.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1381, allocations: 0 / 397.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of Templates: time 0.003078/0.1412, allocations: 0.583 MB / 397.9 MB, free: 13.55 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