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.009269/0.009269, allocations: 88.66 kB / 15.91 MB, free: 6.301 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.001595/0.001596, allocations: 200.2 kB / 16.83 MB, free: 6.234 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.892/1.892, allocations: 205.1 MB / 222.7 MB, free: 4.809 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.0921/0.0921, allocations: 12.58 MB / 282.6 MB, free: 8.91 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.001818/0.001818, allocations: 83.88 kB / 342.8 MB, free: 21.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1149, allocations: 49.39 MB / 392.2 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds): time 0.004167/0.1191, allocations: 1.878 MB / 394.1 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1205, allocations: 0.6825 MB / 394.7 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001771/0.1207, allocations: 11.94 kB / 394.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002998/0.121, allocations: 23.8 kB / 394.8 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.69e-05/0.1211, allocations: 19.84 kB / 394.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.1215, allocations: 111.8 kB / 394.9 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.1218, allocations: 199.8 kB / 395.1 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.1221, allocations: 103 kB / 395.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.1222, allocations: 79.64 kB / 395.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.1224, allocations: 95.42 kB / 395.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.802e-05/0.1224, allocations: 12 kB / 395.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.789e-05/0.1225, allocations: 8 kB / 395.4 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.954e-05/0.1225, allocations: 55.77 kB / 395.4 MB, free: 452 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.1227, allocations: 99.33 kB / 395.5 MB, free: 352 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002571/0.1229, allocations: 203.5 kB / 395.7 MB, free: 148 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.123, allocations: 0 / 395.7 MB, free: 148 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.123, allocations: 0 / 395.7 MB, free: 148 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.123, allocations: 0 / 395.7 MB, free: 148 kB / 286.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.0009477/0.1239, allocations: 0.5193 MB / 396.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.124, allocations: 12.03 kB / 396.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.249e-05/0.1241, allocations: 32.56 kB / 396.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.1245, allocations: 273.1 kB / 396.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.1245, allocations: 16.94 kB / 396.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.858e-05/0.1245, allocations: 24.38 kB / 396.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.1257, allocations: 0.655 MB / 397.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.1257, allocations: 0 / 397.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.367e-05/0.1258, allocations: 8 kB / 397.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.719e-05/0.1258, allocations: 8 kB / 397.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003964/0.1262, allocations: 135.6 kB / 397.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.1275, allocations: 1.039 MB / 398.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.1288, allocations: 0.7202 MB / 399.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003656/0.1292, allocations: 233.3 kB / 399.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.983e-05/0.1293, allocations: 16.05 kB / 399.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001871/0.1294, allocations: 93.84 kB / 399.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.495e-06/0.1295, allocations: 4 kB / 399.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.0009766/0.1304, allocations: 397.4 kB / 399.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003369/0.1308, allocations: 352.4 kB / 400.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.1311, allocations: 230.8 kB / 400.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.1312, allocations: 33.7 kB / 400.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.1314, allocations: 117.1 kB / 400.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.756e-05/0.1315, allocations: 43.69 kB / 400.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.1317, allocations: 82.11 kB / 400.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002754/0.1319, allocations: 338.8 kB / 401.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1321, allocations: 56.84 kB / 401.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003746/0.1325, allocations: 311.5 kB / 401.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005135/0.133, allocations: 403 kB / 401.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.133, allocations: 7.938 kB / 401.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005769/0.1336, allocations: 377.3 kB / 402.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.889e-05/0.1336, allocations: 8 kB / 402.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.1336, allocations: 8 kB / 402.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.021e-05/0.1337, allocations: 12 kB / 402.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.1338, allocations: 35.86 kB / 402.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.977e-05/0.1338, allocations: 23.86 kB / 402.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.134, allocations: 35.69 kB / 402.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.572e-05/0.1341, allocations: 28.31 kB / 402.3 MB, free: 8.672 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.pulseStart,$PRE.booleanConstant.pulseStart,booleanConstant.y,superSample1.y,superSample1.u,subSample1.y,UnitDelay1.y,$CLKPRE.UnitDelay1.u,UnitDelay1.u,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,fractionalDelay.y,backSample1.y,backSample1.u,ClockedSignalToSquare.u,shiftSample1.y,fractionalDelay.u_buffer[1],fractionalDelay.u,$CLKPRE.upSample1.b,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.y,hold1.u,assignClock1.y,assignClock1.u,ClockedSignalToSquare.y,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002023/0.1343, allocations: 189.6 kB / 402.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004526/0.1347, allocations: 281.1 kB / 402.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.1349, allocations: 37.92 kB / 402.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.787e-05/0.1349, allocations: 16.09 kB / 402.9 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.1349, allocations: 8 kB / 402.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.1349, allocations: 4 kB / 402.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003723/0.1353, allocations: 257.3 kB / 403.1 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.1353, allocations: 0 / 403.1 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.808e-05/0.1354, allocations: 19.92 kB / 403.1 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.1354, allocations: 7.938 kB / 403.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.1354, allocations: 12 kB / 403.2 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.1354, allocations: 7.938 kB / 403.2 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.1355, allocations: 4 kB / 403.2 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006098/0.1361, allocations: 398.6 kB / 403.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.1362, allocations: 116.6 kB / 403.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.953e-05/0.1363, allocations: 11.98 kB / 403.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.1364, allocations: 12 kB / 403.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.685e-05/0.1365, allocations: 12.12 kB / 403.7 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.1365, allocations: 12 kB / 403.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.1367, allocations: 155.3 kB / 403.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1367, allocations: 8 kB / 403.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004047/0.1372, allocations: 44 kB / 403.9 MB, free: 6.961 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 (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.0002386/0.1374, allocations: 131.2 kB / 404 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005408/0.1379, allocations: 256.2 kB / 404.3 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.138, allocations: 0 / 404.3 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.352e-05/0.1381, allocations: 25.56 kB / 404.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008982/0.139, allocations: 208.4 kB / 404.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.1403, allocations: 0.6039 MB / 405.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008233/0.1412, allocations: 0.7803 MB / 405.9 MB, free: 4.879 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.1413, allocations: 26.97 kB / 405.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.996e-05/0.1414, allocations: 31.44 kB / 406 MB, free: 4.82 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1414, allocations: 0 / 406 MB, free: 4.82 MB / 302.1 MB Notification: Performance of Templates: time 0.007777/0.1492, allocations: 2.689 MB / 408.7 MB, free: 2.133 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.makefile (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)