Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009171/0.00917, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.001355/0.001355, allocations: 196.1 kB / 16.67 MB, free: 5.938 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.537/1.537, 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.001298/0.001298, allocations: 54.33 kB / 326.5 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004407/0.1078, allocations: 1.993 MB / 375.1 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.11, allocations: 1.045 MB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.1102, allocations: 8 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000877/0.1112, allocations: 311.1 kB / 376.5 MB, free: 13.95 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.0005283/0.1117, allocations: 195.3 kB / 376.7 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008407/0.1126, allocations: 263.4 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006117/0.1132, allocations: 339.2 kB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.1134, allocations: 72.22 kB / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002902/0.1137, allocations: 139.5 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003017/0.114, allocations: 151.4 kB / 377.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.139e-05/0.1141, allocations: 16 kB / 377.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002311/0.1143, allocations: 83.89 kB / 377.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.1144, allocations: 87.73 kB / 377.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.1146, allocations: 119.3 kB / 377.9 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006363/0.1152, allocations: 350.8 kB / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.1153, allocations: 0 / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1153, allocations: 0 / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.1153, allocations: 0 / 378.3 MB, free: 12.17 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001532/0.1168, allocations: 0.6609 MB / 378.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.1169, allocations: 12.02 kB / 379 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.1171, allocations: 36.56 kB / 379 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006185/0.1177, allocations: 324.1 kB / 379.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.1177, allocations: 8.375 kB / 379.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.907e-05/0.1178, allocations: 12.12 kB / 379.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003672/0.1181, allocations: 148 kB / 379.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.1182, allocations: 4 kB / 379.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.1182, allocations: 4 kB / 379.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.1182, allocations: 8 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00021/0.1184, allocations: 71.94 kB / 379.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009668/0.1194, allocations: 496.1 kB / 380 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004169/0.1198, allocations: 134.7 kB / 380.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.12, allocations: 52.83 kB / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.672e-05/0.12, allocations: 0 / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003088/0.1203, allocations: 115.3 kB / 380.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.903e-06/0.1203, allocations: 3.938 kB / 380.3 MB, free: 9.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000595/0.121, allocations: 221.5 kB / 380.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.187e-05/0.121, allocations: 106.8 kB / 380.7 MB, free: 9.562 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005432/0.1216, allocations: 432.4 kB / 381.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.1216, allocations: 33.7 kB / 381.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.1218, allocations: 164 kB / 381.3 MB, free: 8.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.248e-05/0.1218, allocations: 43.45 kB / 381.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.595e-05/0.1219, allocations: 41.7 kB / 381.4 MB, free: 8.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1221, allocations: 342.8 kB / 381.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.1222, allocations: 51.98 kB / 381.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.1224, allocations: 97.97 kB / 381.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.1226, allocations: 106.6 kB / 381.9 MB, free: 8.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1226, allocations: 4 kB / 381.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003382/0.1229, allocations: 177.2 kB / 382.1 MB, free: 8.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.123, allocations: 9.031 kB / 382.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.123, allocations: 4 kB / 382.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.123, allocations: 0 / 382.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.1232, allocations: 27.92 kB / 382.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.1232, allocations: 0 / 382.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.1233, allocations: 15.98 kB / 382.2 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.1233, allocations: 8.062 kB / 382.2 MB, free: 7.969 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001855/0.1235, allocations: 163.6 kB / 382.3 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.41e-05/0.1236, allocations: 39.55 kB / 382.4 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.224e-05/0.1236, allocations: 30.94 kB / 382.4 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1237, allocations: 0 / 382.4 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1237, allocations: 3.938 kB / 382.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1237, allocations: 4 kB / 382.4 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002744/0.124, allocations: 301.3 kB / 382.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.124, allocations: 8 kB / 382.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.624e-05/0.124, allocations: 4 kB / 382.7 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.124, allocations: 3.938 kB / 382.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.124, allocations: 8 kB / 382.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.124, allocations: 3.984 kB / 382.7 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1241, allocations: 0 / 382.7 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.1244, allocations: 196.7 kB / 382.9 MB, free: 7.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.655e-05/0.1245, allocations: 100.8 kB / 383 MB, free: 7.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.484e-05/0.1246, allocations: 27.81 kB / 383.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.901e-05/0.1246, allocations: 7.984 kB / 383.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.769e-05/0.1247, allocations: 11.98 kB / 383.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.1247, allocations: 8 kB / 383.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003425/0.1251, allocations: 315 kB / 383.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1251, allocations: 0 / 383.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002902/0.1254, allocations: 59.84 kB / 383.5 MB, free: 6.594 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000977/0.1264, allocations: 424.7 kB / 383.9 MB, free: 6.168 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.1267, allocations: 111.9 kB / 384 MB, free: 6.059 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1267, allocations: 0 / 384 MB, free: 6.059 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.1268, allocations: 67.84 kB / 384 MB, free: 5.992 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.1273, allocations: 81.2 kB / 384.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009675/0.1283, allocations: 493.3 kB / 384.6 MB, free: 5.406 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.1287, allocations: 0.7714 MB / 385.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001366/0.1288, allocations: 42.27 kB / 385.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.107e-05/0.1289, allocations: 35.38 kB / 385.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1289, allocations: 0 / 385.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of Templates: time 0.009161/0.1381, allocations: 3.938 MB / 389.4 MB, free: 0.5898 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)