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.001026/0.001026, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.001173/0.001173, allocations: 182.5 kB / 17.21 MB, free: 6.336 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.543/1.543, allocations: 205.4 MB / 223.4 MB, free: 13.14 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.0004235/0.0004235, allocations: 15.44 kB / 280.1 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1026, allocations: 47.58 MB / 327.7 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002473/0.1051, allocations: 1.501 MB / 329.2 MB, free: 2.574 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.1068, allocations: 0.8863 MB / 330.1 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.1069, allocations: 4 kB / 330.1 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006703/0.1076, allocations: 147.6 kB / 330.2 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002649/0.1079, allocations: 99.69 kB / 330.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003783/0.1083, allocations: 131.6 kB / 330.5 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002438/0.1085, allocations: 183.4 kB / 330.7 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.1086, allocations: 25.55 kB / 330.7 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.1088, allocations: 71.64 kB / 330.7 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1089, allocations: 83.66 kB / 330.8 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.1089, allocations: 4 kB / 330.8 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.1091, allocations: 35.98 kB / 330.9 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.011e-05/0.1091, allocations: 43.83 kB / 330.9 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.491e-05/0.1092, allocations: 57.62 kB / 331 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.1095, allocations: 156 kB / 331.1 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1095, allocations: 4 kB / 331.1 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1095, allocations: 0 / 331.1 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1095, allocations: 3.938 kB / 331.1 MB, free: 0.6445 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.0008969/0.1104, allocations: 0.5038 MB / 331.6 MB, free: 88 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1105, allocations: 8.031 kB / 331.6 MB, free: 80 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.856e-05/0.1105, allocations: 15.81 kB / 331.7 MB, free: 64 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/0.111, allocations: 261.7 kB / 331.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/0.111, allocations: 4 kB / 331.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.111, allocations: 4 kB / 331.9 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.1114, allocations: 121.9 kB / 332 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.1114, allocations: 3.984 kB / 332 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.1114, allocations: 4 kB / 332 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.1114, allocations: 4 kB / 332 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.1116, allocations: 51.91 kB / 332.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007699/0.1124, allocations: 0.6143 MB / 332.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.1126, allocations: 123.9 kB / 332.8 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.1128, allocations: 54.56 kB / 332.9 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.1128, allocations: 0 / 332.9 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.1131, allocations: 117.9 kB / 333 MB, free: 14.53 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 4.999e-06/0.1131, allocations: 0 / 333 MB, free: 14.53 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005351/0.1136, allocations: 185.2 kB / 333.2 MB, free: 14.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.1138, allocations: 132.5 kB / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004007/0.1142, allocations: 285 kB / 333.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.1142, allocations: 33.7 kB / 333.6 MB, free: 13.85 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.1144, allocations: 120.4 kB / 333.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.726e-05/0.1144, allocations: 27.64 kB / 333.8 MB, free: 13.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.022e-05/0.1145, allocations: 8.125 kB / 333.8 MB, free: 13.7 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.1146, allocations: 330.8 kB / 334.1 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.1148, allocations: 31.97 kB / 334.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.1149, allocations: 81.94 kB / 334.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.115, allocations: 44.06 kB / 334.3 MB, free: 13.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.115, allocations: 0 / 334.3 MB, free: 13.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003263/0.1154, allocations: 145.3 kB / 334.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.1154, allocations: 4 kB / 334.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.1154, allocations: 3.984 kB / 334.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.1154, allocations: 8.094 kB / 334.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.536e-05/0.1155, allocations: 12 kB / 334.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.1156, allocations: 0 / 334.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.1157, allocations: 23.83 kB / 334.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.1157, allocations: 11.95 kB / 334.5 MB, free: 12.98 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 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001942/0.1159, allocations: 154.2 kB / 334.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.178e-05/0.116, allocations: 15.81 kB / 334.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.376e-05/0.116, allocations: 29.7 kB / 334.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.1161, allocations: 8 kB / 334.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.1161, allocations: 3.938 kB / 334.7 MB, free: 12.76 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1161, allocations: 0 / 334.7 MB, free: 12.76 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003585/0.1164, allocations: 249.5 kB / 334.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1165, allocations: 0 / 334.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.464e-05/0.1165, allocations: 7.938 kB / 334.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.1165, allocations: 0 / 334.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.1165, allocations: 11.98 kB / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1165, allocations: 0 / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1165, allocations: 4 kB / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.1169, allocations: 178.5 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.558e-05/0.1169, allocations: 92.83 kB / 335.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.867e-05/0.117, allocations: 11.98 kB / 335.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.502e-05/0.1171, allocations: 15.98 kB / 335.2 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.402e-05/0.1171, allocations: 19.92 kB / 335.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.1172, allocations: 4 kB / 335.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002238/0.1174, allocations: 208.5 kB / 335.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1174, allocations: 0 / 335.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.1177, allocations: 39.98 kB / 335.5 MB, free: 11.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001221/0.1189, allocations: 420.9 kB / 335.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003232/0.1193, allocations: 95.89 kB / 336 MB, free: 11.34 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1193, allocations: 0 / 336 MB, free: 11.34 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.1194, allocations: 51.92 kB / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.1198, allocations: 44.61 kB / 336.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000639/0.1204, allocations: 367.8 kB / 336.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.1207, allocations: 0.7283 MB / 337.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.51e-05/0.1208, allocations: 33.52 kB / 337.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.585e-05/0.1209, allocations: 19.44 kB / 337.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of SimCode: time 1.844e-06/0.1209, allocations: 0 / 337.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of Templates: time 0.006606/0.1275, allocations: 2.475 MB / 339.7 MB, free: 7.578 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)