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.008106/0.008106, allocations: 101.8 kB / 15.73 MB, free: 6.441 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.001881/0.001881, allocations: 195.7 kB / 16.67 MB, free: 6.352 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.001237/0.001237, allocations: 54.52 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1149, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003342/0.1183, allocations: 1.81 MB / 375 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.12, allocations: 0.9594 MB / 375.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.1201, allocations: 4 kB / 375.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007902/0.121, allocations: 159.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.0003663/0.1213, allocations: 127.5 kB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.1218, allocations: 147.5 kB / 376.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002898/0.1221, allocations: 207.4 kB / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.1222, allocations: 25.56 kB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.1224, allocations: 91.55 kB / 376.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.1225, allocations: 87.67 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.1225, allocations: 12 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.1227, allocations: 55.91 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.005e-05/0.1228, allocations: 47.83 kB / 376.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.006e-05/0.1229, allocations: 75.53 kB / 376.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.1232, allocations: 215.1 kB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1233, allocations: 0 / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1233, allocations: 3.938 kB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.1233, 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.0009162/0.1242, allocations: 0.5388 MB / 377.7 MB, free: 12.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.553e-05/0.1243, allocations: 8.031 kB / 377.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.203e-05/0.1244, allocations: 28.78 kB / 377.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004172/0.1248, allocations: 255.1 kB / 378 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.1248, allocations: 4.375 kB / 378 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.277e-05/0.1248, allocations: 8.125 kB / 378 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.1251, allocations: 125.9 kB / 378.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1251, allocations: 0 / 378.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.1252, allocations: 4 kB / 378.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1252, allocations: 0 / 378.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.1253, allocations: 55.91 kB / 378.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007135/0.126, allocations: 0.6065 MB / 378.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/0.1263, allocations: 119.9 kB / 378.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.1264, allocations: 54.5 kB / 379 MB, free: 11.28 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.1265, allocations: 4 kB / 379 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.1267, allocations: 121.8 kB / 379.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 3.877e-06/0.1267, allocations: 7.984 kB / 379.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004655/0.1272, allocations: 173.4 kB / 379.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.358e-05/0.1273, allocations: 132.6 kB / 379.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.1276, allocations: 285 kB / 379.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.1277, allocations: 29.7 kB / 379.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.1278, allocations: 132.3 kB / 379.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.613e-05/0.1279, allocations: 27.73 kB / 379.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-05/0.1279, allocations: 41.83 kB / 379.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.1281, allocations: 334.8 kB / 380.2 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.1282, allocations: 31.98 kB / 380.2 MB, free: 9.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.1284, allocations: 85.92 kB / 380.3 MB, free: 9.785 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001842/0.1286, allocations: 100.8 kB / 380.4 MB, free: 9.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1286, allocations: 0 / 380.4 MB, free: 9.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002708/0.1289, allocations: 137.4 kB / 380.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.1289, allocations: 8 kB / 380.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.1289, allocations: 4.094 kB / 380.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.1289, allocations: 3.984 kB / 380.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.229e-05/0.129, allocations: 16 kB / 380.6 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.129, allocations: 4 kB / 380.6 MB, free: 9.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.1292, allocations: 19.88 kB / 380.6 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.1292, allocations: 4 kB / 380.6 MB, free: 9.473 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.0001398/0.1293, allocations: 157.5 kB / 380.8 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.752e-05/0.1294, allocations: 19.91 kB / 380.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.673e-05/0.1294, allocations: 29.7 kB / 380.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1295, allocations: 0 / 380.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.1295, allocations: 4 kB / 380.8 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.1295, allocations: 3.938 kB / 380.8 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.1297, allocations: 241.5 kB / 381.1 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1297, allocations: 4 kB / 381.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.781e-05/0.1298, allocations: 4.125 kB / 381.1 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1298, allocations: 0 / 381.1 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.1298, allocations: 11.94 kB / 381.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1298, allocations: 7.922 kB / 381.1 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1298, allocations: 0 / 381.1 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003357/0.1302, allocations: 178.6 kB / 381.3 MB, free: 8.738 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.879e-05/0.1302, allocations: 97.02 kB / 381.4 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/0.1303, allocations: 0 / 381.4 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.1304, allocations: 15.98 kB / 381.4 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.389e-05/0.1305, allocations: 15.92 kB / 381.4 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.1305, allocations: 19.92 kB / 381.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002275/0.1307, allocations: 212.4 kB / 381.6 MB, free: 8.371 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1307, allocations: 0 / 381.6 MB, free: 8.371 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002808/0.131, allocations: 35.94 kB / 381.7 MB, free: 8.336 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.0009731/0.132, allocations: 416.5 kB / 382.1 MB, free: 7.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003406/0.1324, allocations: 95.91 kB / 382.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1324, allocations: 0 / 382.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.1325, allocations: 51.91 kB / 382.2 MB, free: 7.773 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.1329, allocations: 52.25 kB / 382.3 MB, free: 7.723 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006583/0.1336, allocations: 348.5 kB / 382.6 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.134, allocations: 0.728 MB / 383.3 MB, free: 6.598 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.679e-05/0.1341, allocations: 29.52 kB / 383.4 MB, free: 6.566 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.61e-05/0.1341, allocations: 31.42 kB / 383.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1342, allocations: 0 / 383.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of Templates: time 0.006336/0.1405, allocations: 2.752 MB / 386.1 MB, free: 3.777 MB / 318.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)