Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.007131/0.007131, allocations: 104.7 kB / 15.73 MB, free: 6.051 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.001104/0.001104, allocations: 191.6 kB / 16.68 MB, free: 5.965 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.504/1.504, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001248/0.001248, allocations: 49.36 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1227, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004005/0.1268, allocations: 1.818 MB / 375 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.1285, allocations: 0.9477 MB / 375.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.1287, allocations: 4 kB / 375.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006428/0.1293, allocations: 175.5 kB / 376.1 MB, free: 14.36 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003082/0.1296, allocations: 127.5 kB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.13, allocations: 135.7 kB / 376.4 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.1303, allocations: 211.4 kB / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.1304, allocations: 29.53 kB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.1305, allocations: 83.62 kB / 376.7 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1307, allocations: 95.59 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.443e-05/0.1307, allocations: 8 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.1308, allocations: 51.98 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.449e-05/0.1309, allocations: 51.81 kB / 376.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.611e-05/0.131, allocations: 71.55 kB / 376.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.1313, allocations: 219.2 kB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.1314, allocations: 8 kB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1314, allocations: 0 / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1314, allocations: 0 / 377.2 MB, free: 13.29 MB / 318.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.0008531/0.1322, allocations: 0.5233 MB / 377.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1323, allocations: 12.03 kB / 377.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.611e-05/0.1323, allocations: 20.66 kB / 377.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.1327, allocations: 262.9 kB / 378 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.1327, allocations: 4.375 kB / 378 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.1327, allocations: 12.12 kB / 378 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.133, allocations: 110 kB / 378.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.133, allocations: 4 kB / 378.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.133, allocations: 3.984 kB / 378.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.133, allocations: 3.938 kB / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.1332, allocations: 51.98 kB / 378.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006542/0.1339, allocations: 0.5987 MB / 378.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.1342, allocations: 127.9 kB / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.1343, allocations: 50.55 kB / 378.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.1343, allocations: 4 kB / 378.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.1345, allocations: 125.8 kB / 379.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.694e-06/0.1346, allocations: 0 / 379.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.000481/0.135, allocations: 173.3 kB / 379.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.025e-05/0.1351, allocations: 136.5 kB / 379.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.1354, allocations: 293.1 kB / 379.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.1355, allocations: 25.7 kB / 379.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.78e-05/0.1355, allocations: 128.2 kB / 379.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.112e-05/0.1356, allocations: 31.64 kB / 379.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.461e-05/0.1357, allocations: 29.72 kB / 379.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1358, allocations: 338.8 kB / 380.2 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.283e-05/0.1359, allocations: 27.98 kB / 380.2 MB, free: 9.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.136, allocations: 85.98 kB / 380.3 MB, free: 9.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.1362, allocations: 96.72 kB / 380.4 MB, free: 9.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1362, allocations: 4.031 kB / 380.4 MB, free: 9.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002727/0.1365, allocations: 141.3 kB / 380.5 MB, free: 9.559 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1365, allocations: 9.094 kB / 380.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.1365, allocations: 0 / 380.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.1366, allocations: 4 kB / 380.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.435e-05/0.1367, allocations: 19.94 kB / 380.6 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.1367, allocations: 3.984 kB / 380.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.1368, allocations: 19.88 kB / 380.6 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.1368, allocations: 11.98 kB / 380.6 MB, free: 9.492 MB / 318.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.0001501/0.137, allocations: 149.6 kB / 380.8 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.137, allocations: 23.7 kB / 380.8 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.077e-05/0.1371, allocations: 21.72 kB / 380.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1371, allocations: 4 kB / 380.8 MB, free: 9.285 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1371, allocations: 0 / 380.8 MB, free: 9.285 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.1371, allocations: 7.922 kB / 380.8 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.1374, allocations: 237.6 kB / 381 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1374, allocations: 4 kB / 381 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.068e-05/0.1374, allocations: 11.92 kB / 381.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1374, allocations: 0 / 381.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.1374, allocations: 4.125 kB / 381.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.1374, allocations: 4 kB / 381.1 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1374, allocations: 3.938 kB / 381.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.1377, allocations: 178.5 kB / 381.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.532e-05/0.1378, allocations: 108.8 kB / 381.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.1379, allocations: 4 kB / 381.4 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.991e-05/0.138, allocations: 11.98 kB / 381.4 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.138, allocations: 19.86 kB / 381.4 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.1381, allocations: 8 kB / 381.4 MB, free: 8.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001969/0.1383, allocations: 208.5 kB / 381.6 MB, free: 8.402 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1383, allocations: 0 / 381.6 MB, free: 8.402 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002577/0.1385, allocations: 36 kB / 381.6 MB, free: 8.367 MB / 318.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.0009561/0.1395, allocations: 420.6 kB / 382 MB, free: 7.945 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.1398, allocations: 95.83 kB / 382.1 MB, free: 7.852 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1398, allocations: 0 / 382.1 MB, free: 7.852 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.1399, allocations: 55.86 kB / 382.2 MB, free: 7.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.1403, allocations: 48.56 kB / 382.2 MB, free: 7.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006154/0.1409, allocations: 344.6 kB / 382.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.1412, allocations: 0.7319 MB / 383.3 MB, free: 6.625 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.636e-05/0.1413, allocations: 29.5 kB / 383.3 MB, free: 6.594 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.142e-05/0.1414, allocations: 23.44 kB / 383.4 MB, free: 6.57 MB / 318.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1414, allocations: 0 / 383.4 MB, free: 6.57 MB / 318.1 MB Notification: Performance of Templates: time 0.006264/0.1477, allocations: 2.76 MB / 386.1 MB, free: 3.805 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)