Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001153/0.001153, allocations: 98.92 kB / 16.5 MB, free: 6.641 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.001023/0.001023, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.583/1.583, allocations: 205.1 MB / 223.3 MB, free: 12.38 MB / 190.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.001276/0.001276, allocations: 51.86 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1181, allocations: 46.63 MB / 325.9 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003419/0.1216, allocations: 1.886 MB / 327.8 MB, free: 2.988 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.1234, allocations: 0.9325 MB / 328.8 MB, free: 2.047 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.1235, allocations: 4 kB / 328.8 MB, free: 2.043 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006678/0.1242, allocations: 163.6 kB / 328.9 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002432/0.1244, allocations: 107.6 kB / 329 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003754/0.1248, allocations: 143.8 kB / 329.2 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002349/0.1251, allocations: 203.4 kB / 329.4 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.1252, allocations: 17.56 kB / 329.4 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.1253, allocations: 71.64 kB / 329.5 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.1254, allocations: 83.67 kB / 329.5 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.1255, allocations: 4 kB / 329.5 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.1256, allocations: 47.91 kB / 329.6 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.068e-05/0.1257, allocations: 43.83 kB / 329.6 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.142e-05/0.1258, allocations: 75.53 kB / 329.7 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.126, allocations: 211.6 kB / 329.9 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.126, allocations: 0 / 329.9 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1261, allocations: 0 / 329.9 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.319e-06/0.1261, allocations: 0 / 329.9 MB, free: 0.8945 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.0008909/0.127, allocations: 0.5196 MB / 330.4 MB, free: 328 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.127, allocations: 8.031 kB / 330.4 MB, free: 320 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.553e-05/0.1271, allocations: 24.66 kB / 330.5 MB, free: 296 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.1274, allocations: 258.9 kB / 330.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.1274, allocations: 8.359 kB / 330.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.1275, allocations: 16.12 kB / 330.7 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.1277, allocations: 113.9 kB / 330.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1277, allocations: 0 / 330.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.1277, allocations: 8 kB / 330.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1277, allocations: 4 kB / 330.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.1279, allocations: 47.91 kB / 330.9 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006238/0.1285, allocations: 0.6065 MB / 331.5 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002569/0.1288, allocations: 127.8 kB / 331.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.1289, allocations: 50.56 kB / 331.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.129, allocations: 7.984 kB / 331.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.1292, allocations: 121.9 kB / 331.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.1292, allocations: 3.938 kB / 331.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004355/0.1296, allocations: 169.5 kB / 332 MB, free: 14.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.129e-05/0.1297, allocations: 136.5 kB / 332.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.13, allocations: 284.9 kB / 332.4 MB, free: 14.12 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.13, allocations: 33.7 kB / 332.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.596e-05/0.1301, allocations: 120.4 kB / 332.6 MB, free: 13.96 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/0.1302, allocations: 27.64 kB / 332.6 MB, free: 13.93 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-05/0.1302, allocations: 33.7 kB / 332.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1304, allocations: 330.8 kB / 332.9 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.827e-05/0.1305, allocations: 47.91 kB / 333 MB, free: 13.52 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.1306, allocations: 74 kB / 333.1 MB, free: 13.42 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.1308, allocations: 100.2 kB / 333.2 MB, free: 13.31 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1308, allocations: 0.5 kB / 333.2 MB, free: 13.31 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002793/0.1311, allocations: 145.3 kB / 333.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1311, allocations: 4 kB / 333.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.1312, allocations: 4 kB / 333.3 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1312, allocations: 0 / 333.3 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.1313, allocations: 15.98 kB / 333.3 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.1313, allocations: 8.094 kB / 333.3 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.1314, allocations: 15.92 kB / 333.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.1314, allocations: 8 kB / 333.3 MB, free: 13.11 MB / 286.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.0001498/0.1316, allocations: 153.3 kB / 333.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.1317, allocations: 23.72 kB / 333.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.457e-05/0.1317, allocations: 25.7 kB / 333.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.1317, allocations: 3.938 kB / 333.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.1317, allocations: 0 / 333.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1318, allocations: 11.94 kB / 333.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002711/0.132, allocations: 237.5 kB / 333.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.132, allocations: 0 / 333.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.958e-05/0.1321, allocations: 8 kB / 333.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1321, allocations: 0 / 333.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.1321, allocations: 8 kB / 333.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1321, allocations: 0 / 333.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1321, allocations: 3.938 kB / 333.8 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.1325, allocations: 186.4 kB / 334 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.989e-05/0.1325, allocations: 92.92 kB / 334.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.1326, allocations: 4 kB / 334.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.627e-05/0.1327, allocations: 12.11 kB / 334.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.273e-05/0.1328, allocations: 15.92 kB / 334.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.1328, allocations: 11.98 kB / 334.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001942/0.133, allocations: 220.4 kB / 334.3 MB, free: 12.01 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.133, allocations: 0 / 334.3 MB, free: 12.01 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002624/0.1333, allocations: 43.94 kB / 334.4 MB, free: 11.96 MB / 286.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.0009643/0.1343, allocations: 410.7 kB / 334.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002672/0.1345, allocations: 87.91 kB / 334.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1345, allocations: 4.188 kB / 334.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.1347, allocations: 56.28 kB / 334.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.1351, allocations: 56.45 kB / 335 MB, free: 11.37 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006303/0.1357, allocations: 382.7 kB / 335.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.136, allocations: 0.7361 MB / 336.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.056e-05/0.1361, allocations: 21.53 kB / 336.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.982e-05/0.1361, allocations: 23.42 kB / 336.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1361, allocations: 0 / 336.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of Templates: time 0.006181/0.1423, allocations: 2.565 MB / 338.7 MB, free: 7.59 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)