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.001008/0.001008, allocations: 96.55 kB / 15.74 MB, free: 424 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002212/0.002212, allocations: 173.5 kB / 16.62 MB, free: 6.613 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.96/1.96, allocations: 205.4 MB / 222.8 MB, free: 5.578 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.09939/0.09939, allocations: 12.6 MB / 283.7 MB, free: 8.695 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.0007212/0.0007214, allocations: 20 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1299, allocations: 50.38 MB / 394.9 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock): time 0.00138/0.1314, allocations: 0.5643 MB / 395.5 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004077/0.1318, allocations: 123.7 kB / 395.6 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.1319, allocations: 0 / 395.6 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.045e-05/0.132, allocations: 3.938 kB / 395.6 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.1322, allocations: 3.984 kB / 395.6 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002975/0.1325, allocations: 31.91 kB / 395.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.1326, allocations: 39.92 kB / 395.7 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.1327, allocations: 15.98 kB / 395.7 MB, free: 2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.914e-05/0.1328, allocations: 7.938 kB / 395.7 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.462e-05/0.1328, allocations: 11.92 kB / 395.7 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.1328, allocations: 0 / 395.7 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.177e-05/0.1329, allocations: 0 / 395.7 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.109e-05/0.1329, allocations: 23.91 kB / 395.7 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.908e-05/0.133, allocations: 33.64 kB / 395.8 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.783e-05/0.1331, allocations: 35.95 kB / 395.8 MB, free: 1.883 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/0.1331, allocations: 0 / 395.8 MB, free: 1.883 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1331, allocations: 3.938 kB / 395.8 MB, free: 1.879 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1331, allocations: 0 / 395.8 MB, free: 1.879 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.0005031/0.1336, allocations: 351.3 kB / 396.2 MB, free: 1.488 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.1337, allocations: 12.03 kB / 396.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.287e-05/0.1337, allocations: 7.906 kB / 396.2 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.134, allocations: 190.9 kB / 396.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.134, allocations: 3.953 kB / 396.4 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.1341, allocations: 8 kB / 396.4 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003341/0.1344, allocations: 135.1 kB / 396.5 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1344, allocations: 4 kB / 396.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.1345, allocations: 0 / 396.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1345, allocations: 0 / 396.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.411e-05/0.1345, allocations: 15.98 kB / 396.5 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002023/0.1347, allocations: 173.6 kB / 396.7 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.135, allocations: 74.64 kB / 396.8 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.889e-05/0.135, allocations: 40.84 kB / 396.8 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.1351, allocations: 0 / 396.8 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/0.1351, allocations: 34.55 kB / 396.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/0.1351, allocations: 0 / 396.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002782/0.1354, allocations: 89.53 kB / 396.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/0.1355, allocations: 55.41 kB / 397 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.1357, allocations: 133.8 kB / 397.1 MB, free: 388 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.1357, allocations: 29.7 kB / 397.1 MB, free: 352 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.799e-05/0.1358, allocations: 92.06 kB / 397.2 MB, free: 256 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.1358, allocations: 7.984 kB / 397.2 MB, free: 248 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.977e-06/0.1358, allocations: 0 / 397.2 MB, free: 248 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.136, allocations: 318.8 kB / 397.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.494e-05/0.136, allocations: 8 kB / 397.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.558e-05/0.1361, allocations: 58.8 kB / 397.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.271e-05/0.1362, allocations: 20 kB / 397.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1362, allocations: 0 / 397.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001547/0.1363, allocations: 93.34 kB / 397.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1364, allocations: 9.25 kB / 397.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1364, allocations: 0 / 397.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.1364, allocations: 4.25 kB / 397.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.946e-05/0.1364, allocations: 12 kB / 397.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.1365, allocations: 4 kB / 397.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.323e-05/0.1365, allocations: 4 kB / 397.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.1365, allocations: 4 kB / 397.8 MB, free: 15.68 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,unitDelay1.u,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001537/0.1367, allocations: 129.5 kB / 397.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.1368, allocations: 77.53 kB / 398 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.404e-05/0.1369, allocations: 12.38 kB / 398 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1369, allocations: 0 / 398 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.1369, allocations: 4 kB / 398 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1369, allocations: 3.938 kB / 398 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.1371, allocations: 173.5 kB / 398.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1371, allocations: 0 / 398.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.565e-05/0.1371, allocations: 7.938 kB / 398.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1371, allocations: 3.953 kB / 398.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.1371, allocations: 4 kB / 398.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1371, allocations: 0 / 398.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1372, allocations: 0 / 398.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.1373, allocations: 97.14 kB / 398.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.214e-05/0.1374, allocations: 96.94 kB / 398.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.1374, allocations: 7.953 kB / 398.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.694e-05/0.1375, allocations: 0 / 398.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.26e-06/0.1375, allocations: 0 / 398.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.1375, allocations: 7.984 kB / 398.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.708e-05/0.1376, allocations: 99.27 kB / 398.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1376, allocations: 192 / 398.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.1378, allocations: 8 kB / 398.5 MB, free: 14.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001465/0.138, allocations: 107.1 kB / 398.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.1382, allocations: 43.91 kB / 398.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1382, allocations: 0 / 398.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.82e-07/0.1382, allocations: 0 / 398.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.1386, allocations: 47.95 kB / 398.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004015/0.139, allocations: 171.8 kB / 398.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.1394, allocations: 0.6933 MB / 399.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.522e-05/0.1394, allocations: 3.984 kB / 399.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.022e-05/0.1395, allocations: 15.38 kB / 399.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1395, allocations: 0 / 399.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of Templates: time 0.003096/0.1426, allocations: 0.5508 MB / 400.1 MB, free: 13.17 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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