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.008344/0.008344, allocations: 99.38 kB / 15.73 MB, free: 6.023 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.001524/0.001525, allocations: 187.6 kB / 16.67 MB, free: 5.961 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.531/1.531, allocations: 205.1 MB / 222.5 MB, free: 4.383 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.001213/0.001213, allocations: 54.7 kB / 326.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1045, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003744/0.1083, allocations: 1.802 MB / 375 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.11, allocations: 0.9594 MB / 375.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1101, allocations: 4 kB / 375.9 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006669/0.1108, allocations: 171.5 kB / 376.1 MB, free: 14.34 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.0003343/0.1112, allocations: 127.5 kB / 376.2 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000433/0.1116, allocations: 139.7 kB / 376.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.1119, allocations: 203.4 kB / 376.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.1121, allocations: 29.53 kB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.1123, allocations: 87.56 kB / 376.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.1125, allocations: 87.66 kB / 376.7 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.081e-05/0.1125, allocations: 8 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.1127, allocations: 59.92 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.1128, allocations: 51.81 kB / 376.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.1129, allocations: 71.55 kB / 376.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004016/0.1133, allocations: 215.2 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.1133, allocations: 0 / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.1134, allocations: 4 kB / 377.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.1134, allocations: 4 kB / 377.2 MB, free: 13.28 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.001029/0.1144, allocations: 0.5272 MB / 377.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.1145, allocations: 12.03 kB / 377.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.89e-05/0.1145, allocations: 20.66 kB / 377.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003657/0.1149, allocations: 254.9 kB / 378 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.1149, allocations: 8.375 kB / 378 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.115, allocations: 12.12 kB / 378 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002258/0.1152, allocations: 114 kB / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.1152, allocations: 0 / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.1152, allocations: 7.984 kB / 378.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.1153, allocations: 0 / 378.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.1154, allocations: 51.91 kB / 378.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006932/0.1161, allocations: 0.6026 MB / 378.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.1164, allocations: 131.9 kB / 378.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.973e-05/0.1165, allocations: 46.56 kB / 378.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-05/0.1165, allocations: 4 kB / 378.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.1167, allocations: 121.8 kB / 379.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/0.1168, allocations: 0 / 379.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004613/0.1172, allocations: 173.7 kB / 379.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.187e-05/0.1173, allocations: 136.5 kB / 379.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/0.1176, allocations: 285.1 kB / 379.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.1177, allocations: 37.7 kB / 379.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.478e-05/0.1178, allocations: 124.3 kB / 379.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.494e-05/0.1178, allocations: 31.62 kB / 379.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.711e-05/0.1179, allocations: 29.72 kB / 379.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.118, allocations: 342.8 kB / 380.2 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.773e-05/0.1181, allocations: 27.98 kB / 380.2 MB, free: 9.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.1182, allocations: 81.98 kB / 380.3 MB, free: 9.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.1184, allocations: 96.28 kB / 380.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1184, allocations: 0 / 380.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000294/0.1187, allocations: 149.4 kB / 380.5 MB, free: 9.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.1188, allocations: 9.094 kB / 380.5 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1188, allocations: 0 / 380.5 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.1188, allocations: 4 kB / 380.5 MB, free: 9.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.101e-05/0.1189, allocations: 11.94 kB / 380.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.1189, allocations: 11.97 kB / 380.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.119, allocations: 23.78 kB / 380.6 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.1191, allocations: 7.984 kB / 380.6 MB, free: 9.48 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.0001547/0.1192, allocations: 149.7 kB / 380.7 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.741e-05/0.1193, allocations: 23.7 kB / 380.8 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.702e-05/0.1193, allocations: 21.72 kB / 380.8 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1193, allocations: 0 / 380.8 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.1193, allocations: 4 kB / 380.8 MB, free: 9.273 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.1194, allocations: 7.922 kB / 380.8 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002547/0.1196, allocations: 237.7 kB / 381 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.1196, allocations: 8 kB / 381 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.966e-05/0.1197, allocations: 11.92 kB / 381.1 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1197, allocations: 4 kB / 381.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/0.1197, allocations: 4 kB / 381.1 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1197, allocations: 3.938 kB / 381.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1197, allocations: 0 / 381.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003011/0.12, allocations: 170.6 kB / 381.2 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.471e-05/0.1201, allocations: 112.7 kB / 381.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.1202, allocations: 4 kB / 381.3 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.299e-05/0.1203, allocations: 15.92 kB / 381.4 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.864e-05/0.1203, allocations: 19.92 kB / 381.4 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.1204, allocations: 4 kB / 381.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002105/0.1206, allocations: 212.5 kB / 381.6 MB, free: 8.387 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1206, allocations: 0 / 381.6 MB, free: 8.387 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002496/0.1208, allocations: 32 kB / 381.6 MB, free: 8.355 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.0009409/0.1218, allocations: 420.6 kB / 382 MB, free: 7.934 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.1221, allocations: 95.83 kB / 382.1 MB, free: 7.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1221, allocations: 3.938 kB / 382.1 MB, free: 7.836 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.1222, allocations: 47.98 kB / 382.2 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.1226, allocations: 48.56 kB / 382.2 MB, free: 7.742 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006082/0.1232, allocations: 348.5 kB / 382.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.1235, allocations: 0.728 MB / 383.3 MB, free: 6.617 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.599e-05/0.1236, allocations: 33.52 kB / 383.3 MB, free: 6.582 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.679e-05/0.1236, allocations: 19.44 kB / 383.3 MB, free: 6.562 MB / 318.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1236, allocations: 0 / 383.3 MB, free: 6.562 MB / 318.1 MB Notification: Performance of Templates: time 0.006059/0.1297, allocations: 2.827 MB / 386.2 MB, free: 3.73 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)