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.006812/0.006811, allocations: 100.8 kB / 15.73 MB, free: 6.477 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.001582/0.001582, allocations: 189.9 kB / 16.67 MB, free: 6.391 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.522/1.522, allocations: 205.1 MB / 222.5 MB, free: 4.582 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.001284/0.001284, allocations: 50.7 kB / 326.5 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.111, allocations: 46.62 MB / 373.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003503/0.1145, allocations: 1.81 MB / 375 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.1163, allocations: 0.9477 MB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.1164, allocations: 7.938 kB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006839/0.1171, allocations: 167.5 kB / 376.1 MB, free: 14.39 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.0003725/0.1175, allocations: 135.5 kB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.118, allocations: 135.6 kB / 376.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002859/0.1183, allocations: 207.4 kB / 376.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.1184, allocations: 29.53 kB / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.1186, allocations: 91.67 kB / 376.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.1187, allocations: 87.61 kB / 376.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.407e-05/0.1187, allocations: 8 kB / 376.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.1189, allocations: 55.98 kB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.567e-05/0.119, allocations: 51.81 kB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.1191, allocations: 75.48 kB / 376.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.1195, allocations: 219.2 kB / 377.2 MB, free: 13.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1195, allocations: 4 kB / 377.2 MB, free: 13.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1195, allocations: 0 / 377.2 MB, free: 13.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.792e-06/0.1195, allocations: 0 / 377.2 MB, free: 13.31 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.0009246/0.1204, allocations: 0.5234 MB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.1205, allocations: 12.03 kB / 377.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.261e-05/0.1205, allocations: 20.66 kB / 377.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.1209, allocations: 258.9 kB / 378 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.1209, allocations: 4.375 kB / 378 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.1209, allocations: 12.06 kB / 378 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.1212, allocations: 129.9 kB / 378.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1212, allocations: 0 / 378.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.1213, allocations: 0 / 378.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.1213, allocations: 0 / 378.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.1214, allocations: 51.91 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007403/0.1222, allocations: 0.5988 MB / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.1225, allocations: 131.8 kB / 378.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.1226, allocations: 50.5 kB / 378.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.1226, allocations: 4 kB / 378.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000234/0.1229, allocations: 114 kB / 379.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.1229, allocations: 7.938 kB / 379.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004833/0.1234, allocations: 173.3 kB / 379.2 MB, free: 11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.1235, allocations: 136.5 kB / 379.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.1238, allocations: 285 kB / 379.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.1239, allocations: 29.7 kB / 379.7 MB, free: 10.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.124, allocations: 124.3 kB / 379.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.247e-05/0.124, allocations: 35.77 kB / 379.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.893e-05/0.1241, allocations: 25.72 kB / 379.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1243, allocations: 342.8 kB / 380.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.407e-05/0.1244, allocations: 27.98 kB / 380.2 MB, free: 9.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.1245, allocations: 81.92 kB / 380.3 MB, free: 9.848 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.1247, allocations: 100.8 kB / 380.4 MB, free: 9.734 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1247, allocations: 0 / 380.4 MB, free: 9.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002741/0.125, allocations: 141.4 kB / 380.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.1251, allocations: 13.19 kB / 380.5 MB, free: 9.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1251, allocations: 0 / 380.5 MB, free: 9.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.1251, allocations: 4 kB / 380.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.606e-05/0.1252, allocations: 19.92 kB / 380.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.1252, allocations: 3.984 kB / 380.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1253, allocations: 27.77 kB / 380.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.1254, allocations: 4 kB / 380.6 MB, free: 9.52 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.0001375/0.1255, allocations: 153.6 kB / 380.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.548e-05/0.1256, allocations: 23.72 kB / 380.8 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.319e-05/0.1256, allocations: 21.72 kB / 380.8 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.1256, allocations: 7.984 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1256, allocations: 3.938 kB / 380.8 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1256, allocations: 3.938 kB / 380.8 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002641/0.1259, allocations: 241.6 kB / 381.1 MB, free: 9.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1259, allocations: 0 / 381.1 MB, free: 9.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.175e-05/0.126, allocations: 7.984 kB / 381.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.126, allocations: 0 / 381.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.126, allocations: 7.938 kB / 381.1 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.126, allocations: 4.125 kB / 381.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.126, allocations: 4 kB / 381.1 MB, free: 8.988 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003159/0.1263, allocations: 178.4 kB / 381.2 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.451e-05/0.1264, allocations: 104.8 kB / 381.4 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.1265, allocations: 8 kB / 381.4 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.544e-05/0.1266, allocations: 11.98 kB / 381.4 MB, free: 8.648 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.5e-05/0.1266, allocations: 19.92 kB / 381.4 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.1267, allocations: 4 kB / 381.4 MB, free: 8.625 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002113/0.1269, allocations: 212.5 kB / 381.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1269, allocations: 3.938 kB / 381.6 MB, free: 8.418 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002743/0.1272, allocations: 35.98 kB / 381.6 MB, free: 8.383 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.0009565/0.1281, allocations: 412.7 kB / 382 MB, free: 7.969 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003008/0.1285, allocations: 91.89 kB / 382.1 MB, free: 7.879 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1285, allocations: 0 / 382.1 MB, free: 7.879 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.1286, allocations: 55.92 kB / 382.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.129, allocations: 48.19 kB / 382.2 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006721/0.1297, allocations: 352.8 kB / 382.6 MB, free: 7.402 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004058/0.1301, allocations: 0.7319 MB / 383.3 MB, free: 6.645 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.043e-05/0.1302, allocations: 25.53 kB / 383.3 MB, free: 6.617 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.14e-05/0.1302, allocations: 23.38 kB / 383.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1302, allocations: 0 / 383.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of Templates: time 0.007093/0.1373, allocations: 2.76 MB / 386.1 MB, free: 3.828 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)