Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.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.WorkInProgress.Tests.TestBooleanSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009481/0.0009479, allocations: 96.86 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.001126/0.001126, allocations: 171.5 kB / 16.62 MB, free: 6.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.4 MB / 222.8 MB, free: 5.648 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.09519/0.09519, allocations: 12.6 MB / 283.7 MB, free: 8.691 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.0007062/0.0007064, allocations: 16 kB / 344.5 MB, free: 21.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1152, allocations: 50.39 MB / 394.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds): time 0.00238/0.1176, allocations: 1.485 MB / 396.4 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1189, allocations: 0.6712 MB / 397.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.119, allocations: 7.938 kB / 397.1 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002645/0.1193, allocations: 23.8 kB / 397.1 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.291e-05/0.1194, allocations: 23.84 kB / 397.1 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.1198, allocations: 111.8 kB / 397.2 MB, free: 460 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002376/0.1201, allocations: 187.9 kB / 397.4 MB, free: 272 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002597/0.1203, allocations: 89.75 kB / 397.5 MB, free: 180 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.1204, allocations: 59.66 kB / 397.6 MB, free: 120 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.1206, allocations: 71.56 kB / 397.6 MB, free: 48 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.1206, allocations: 8 kB / 397.6 MB, free: 40 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.078e-05/0.1206, allocations: 4 kB / 397.6 MB, free: 36 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.91e-05/0.1207, allocations: 47.83 kB / 397.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.16e-05/0.1208, allocations: 57.52 kB / 397.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.121, allocations: 136 kB / 397.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.121, allocations: 0 / 397.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.121, allocations: 0 / 397.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.121, allocations: 0 / 397.9 MB, free: 15.79 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0007925/0.1218, allocations: 495.5 kB / 398.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1219, allocations: 8.031 kB / 398.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.196e-05/0.1219, allocations: 31.62 kB / 398.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.1223, allocations: 267.9 kB / 398.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.1224, allocations: 20.56 kB / 398.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.52e-05/0.1224, allocations: 24 kB / 398.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009638/0.1234, allocations: 0.6314 MB / 399.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1234, allocations: 0 / 399.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.1234, allocations: 16 kB / 399.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.742e-05/0.1235, allocations: 11.98 kB / 399.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00022/0.1237, allocations: 128 kB / 399.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009633/0.1247, allocations: 1.032 MB / 400.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007269/0.1254, allocations: 0.7244 MB / 401.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000288/0.1257, allocations: 234.6 kB / 401.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.198e-05/0.1258, allocations: 20.17 kB / 401.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000135/0.1259, allocations: 90.03 kB / 401.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.013e-06/0.1259, allocations: 4 kB / 401.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.0006836/0.1266, allocations: 409.8 kB / 402 MB, free: 11.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002005/0.1268, allocations: 341.4 kB / 402.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.127, allocations: 234.8 kB / 402.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.1271, allocations: 33.7 kB / 402.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.731e-05/0.1272, allocations: 121.1 kB / 402.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.1272, allocations: 35.77 kB / 402.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.17e-05/0.1272, allocations: 8 kB / 402.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1274, allocations: 338.8 kB / 403.1 MB, free: 10 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.527e-05/0.1275, allocations: 52.84 kB / 403.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003074/0.1278, allocations: 307.5 kB / 403.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.1281, allocations: 119.8 kB / 403.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.1281, allocations: 4 kB / 403.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005535/0.1286, allocations: 376.8 kB / 403.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.1287, allocations: 8 kB / 403.9 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.1287, allocations: 12 kB / 403.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.097e-05/0.1287, allocations: 12 kB / 403.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.005e-05/0.1288, allocations: 32.58 kB / 404 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.893e-05/0.1289, allocations: 19.94 kB / 404 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.1291, allocations: 39.77 kB / 404 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.1291, allocations: 20 kB / 404.1 MB, free: 8.883 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 49 ($whenCondition1,booleanConstant.y,$PRE.booleanConstant.pulseStart,booleanConstant.pulseStart,superSample1.y,superSample1.u,subSample1.y,UnitDelay1.y,UnitDelay1.u,$CLKPRE.UnitDelay1.u,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,fractionalDelay.y,backSample1.y,backSample1.u,ClockedSignalToSquare.u,shiftSample1.y,fractionalDelay.u_buffer[1],fractionalDelay.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample3.y,booleanConstant1[3].y,booleanConstant1[2].y,booleanConstant1[1].y,shiftSample1.u,subSample1.u,assignClock2.y[3],assignClock2.y[2],assignClock2.y[1],assignClock2.u[3],assignClock2.u[2],assignClock2.u[1],sample1.y[3],sample1.y[2],sample1.y[1],sample2.y,hold1.u,hold1.y,assignClock1.y,assignClock1.u,ClockedSignalToSquare.y2,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y,fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 4 (UnitDelay1.u,upSample1.b_super,upSample1.b,ClockedSignalToSquare.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0002024/0.1293, allocations: 194.1 kB / 404.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000402/0.1297, allocations: 288.8 kB / 404.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.967e-05/0.1298, allocations: 33.86 kB / 404.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.1298, allocations: 8 kB / 404.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1298, allocations: 4 kB / 404.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.1298, allocations: 4 kB / 404.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.1301, allocations: 257.3 kB / 404.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.882e-06/0.1301, allocations: 4 kB / 404.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.599e-05/0.1302, allocations: 19.92 kB / 404.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.1302, allocations: 7.953 kB / 404.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.1302, allocations: 8.156 kB / 404.9 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.1302, allocations: 12.25 kB / 404.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1302, allocations: 4 kB / 404.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004637/0.1307, allocations: 402.5 kB / 405.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.201e-05/0.1308, allocations: 108.8 kB / 405.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.489e-05/0.1308, allocations: 15.94 kB / 405.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.1309, allocations: 15.98 kB / 405.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/0.131, allocations: 19.98 kB / 405.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.131, allocations: 11.94 kB / 405.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.1311, allocations: 155.3 kB / 405.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1312, allocations: 3.938 kB / 405.6 MB, free: 7.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000356/0.1315, allocations: 48 kB / 405.7 MB, free: 7.156 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 43 ($whenCondition1,booleanConstant.y,booleanConstant.pulseStart,ClockedSignalToSquare.y,hold1.y,superSample1.y,subSample1.y,superSample1.u,upSample1.y,upSample1.b_super,upSample1.u_super,UnitDelay1.u,UnitDelay1.y,fractionalDelay.y,backSample1.y,shiftSample1.y,ClockedSignalToSquare.u,backSample1.u,assignClock1.u,assignClock1.y,hold1.u,sample2.y,sample1.y[1],sample1.y[2],sample1.y[3],assignClock2.u[1],assignClock2.u[2],assignClock2.u[3],assignClock2.y[1],assignClock2.y[2],assignClock2.y[3],subSample1.u,shiftSample1.u,booleanConstant1[1].y,booleanConstant1[2].y,booleanConstant1[3].y,sample3.y,upSample1.u,upSample1.dummy,upSample1.b,fractionalDelay.u,fractionalDelay.u_buffer[1],ClockedSignalToSquare.y2) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,UnitDelay1.u,upSample1.b,ClockedSignalToSquare.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001355/0.1317, allocations: 127.2 kB / 405.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003917/0.1321, allocations: 249.8 kB / 406 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1321, allocations: 0 / 406 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.469e-05/0.1321, allocations: 24.05 kB / 406 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006385/0.1328, allocations: 200.2 kB / 406.2 MB, free: 6.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008172/0.1336, allocations: 0.5825 MB / 406.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1339, allocations: 0.7803 MB / 407.6 MB, free: 5.121 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.708e-05/0.134, allocations: 30.97 kB / 407.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.204e-05/0.1341, allocations: 35.42 kB / 407.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1341, allocations: 0 / 407.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of Templates: time 0.005508/0.1396, allocations: 2.532 MB / 410.2 MB, free: 2.523 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.pipe 2>&1) Environment - environmentSimulation: