Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.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) 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.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009824/0.000982, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.006676/0.006676, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.353/1.353, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.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: Performance of FrontEnd - loaded program: time 0.0004191/0.0004191, allocations: 16 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2265, allocations: 47.58 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001807/0.2284, allocations: 1.529 MB / 328.6 MB, free: 216 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.23, allocations: 0.9192 MB / 329.5 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.2301, allocations: 6.312 kB / 329.5 MB, free: 15.49 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006719/0.2308, allocations: 156.8 kB / 329.6 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002728/0.2311, allocations: 108.8 kB / 329.7 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004234/0.2315, allocations: 137.6 kB / 329.9 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003027/0.2318, allocations: 203.1 kB / 330.1 MB, free: 15.13 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.2319, allocations: 24.81 kB / 330.1 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.232, allocations: 72.55 kB / 330.2 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.2322, allocations: 79.83 kB / 330.2 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.2322, allocations: 5 kB / 330.2 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.2323, allocations: 46.61 kB / 330.3 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.447e-05/0.2324, allocations: 47.53 kB / 330.3 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.2326, allocations: 98.44 kB / 330.4 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003221/0.2329, allocations: 204.9 kB / 330.6 MB, free: 14.76 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2329, allocations: 1.469 kB / 330.6 MB, free: 14.76 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2329, allocations: 0 / 330.6 MB, free: 14.76 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.2329, allocations: 0 / 330.6 MB, free: 14.76 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008295/0.2337, allocations: 0.4948 MB / 331.1 MB, free: 14.27 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.2338, allocations: 8.875 kB / 331.1 MB, free: 14.27 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.172e-05/0.2338, allocations: 21.66 kB / 331.2 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003454/0.2342, allocations: 265.4 kB / 331.4 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.2342, allocations: 3.031 kB / 331.4 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.2343, allocations: 8.531 kB / 331.4 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.2345, allocations: 122.4 kB / 331.6 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.2345, allocations: 0.9688 kB / 331.6 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.2345, allocations: 1.25 kB / 331.6 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2345, allocations: 2.406 kB / 331.6 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000147/0.2347, allocations: 59.27 kB / 331.6 MB, free: 13.84 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006975/0.2354, allocations: 0.6065 MB / 332.2 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002434/0.2357, allocations: 126.1 kB / 332.3 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.2358, allocations: 50.25 kB / 332.4 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.2358, allocations: 2.156 kB / 332.4 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002176/0.236, allocations: 132.2 kB / 332.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 1.273e-06/0.236, allocations: 0.9688 kB / 332.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004262/0.2365, allocations: 177 kB / 332.7 MB, free: 12.85 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.285e-05/0.2365, allocations: 134 kB / 332.8 MB, free: 12.69 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002823/0.2368, allocations: 286.3 kB / 333.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.2369, allocations: 35.64 kB / 333.1 MB, free: 12.46 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.143e-05/0.237, allocations: 129.6 kB / 333.3 MB, free: 12.34 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.082e-05/0.237, allocations: 20.97 kB / 333.3 MB, free: 12.33 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.237, allocations: 26.02 kB / 333.3 MB, free: 12.3 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.2371, allocations: 333 kB / 333.6 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.971e-05/0.2372, allocations: 29.42 kB / 333.7 MB, free: 11.96 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.2374, allocations: 91.83 kB / 333.8 MB, free: 11.88 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.2376, allocations: 89.75 kB / 333.8 MB, free: 11.81 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2376, allocations: 5.312 kB / 333.9 MB, free: 11.8 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002856/0.2379, allocations: 147.7 kB / 334 MB, free: 11.71 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.2379, allocations: 4.625 kB / 334 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.2379, allocations: 1.188 kB / 334 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.2379, allocations: 2.281 kB / 334 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.492e-05/0.238, allocations: 20.33 kB / 334 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.2381, allocations: 1.156 kB / 334 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.2382, allocations: 27.08 kB / 334 MB, free: 11.69 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.2382, allocations: 5.531 kB / 334.1 MB, free: 11.69 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001597/0.2384, allocations: 147.7 kB / 334.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.821e-05/0.2384, allocations: 22.34 kB / 334.2 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.034e-05/0.2385, allocations: 25.39 kB / 334.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.2385, allocations: 2.188 kB / 334.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.2385, allocations: 1.125 kB / 334.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.2385, allocations: 5.094 kB / 334.3 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002713/0.2388, allocations: 251.2 kB / 334.5 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.2388, allocations: 1.062 kB / 334.5 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.21e-05/0.2389, allocations: 12.28 kB / 334.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.2389, allocations: 1.156 kB / 334.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.2389, allocations: 2.469 kB / 334.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2389, allocations: 1 kB / 334.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2389, allocations: 1.094 kB / 334.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003162/0.2392, allocations: 185 kB / 334.7 MB, free: 11.11 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.994e-05/0.2393, allocations: 98.72 kB / 334.8 MB, free: 11 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.2394, allocations: 6.156 kB / 334.8 MB, free: 11 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.2395, allocations: 21.86 kB / 334.8 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.2395, allocations: 18.31 kB / 334.8 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.2396, allocations: 12.16 kB / 334.9 MB, free: 10.97 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002354/0.2398, allocations: 209.7 kB / 335.1 MB, free: 10.84 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2398, allocations: 0 / 335.1 MB, free: 10.84 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002819/0.2401, allocations: 35.53 kB / 335.1 MB, free: 10.83 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001052/0.2412, allocations: 417.7 kB / 335.5 MB, free: 10.43 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003123/0.2415, allocations: 99.91 kB / 335.6 MB, free: 10.34 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2415, allocations: 0 / 335.6 MB, free: 10.34 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.2416, allocations: 55.91 kB / 335.7 MB, free: 10.28 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.2421, allocations: 44.34 kB / 335.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006152/0.2427, allocations: 391.8 kB / 336.1 MB, free: 9.824 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.243, allocations: 0.7322 MB / 336.8 MB, free: 9.066 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.013e-05/0.2431, allocations: 25.53 kB / 336.8 MB, free: 9.043 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.073e-05/0.2431, allocations: 19.44 kB / 336.9 MB, free: 9.023 MB / 270.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2431, allocations: 4 kB / 336.9 MB, free: 9.02 MB / 270.1 MB Notification: Performance of Templates: time 0.005928/0.2491, allocations: 2.542 MB / 339.4 MB, free: 6.477 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)