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.001623/0.001623, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001323/0.001323, allocations: 200 kB / 18.01 MB, free: 5.055 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.676/1.676, allocations: 205.1 MB / 223.9 MB, free: 12.27 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.001165/0.001165, allocations: 52.2 kB / 327.8 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1066, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003027/0.1097, allocations: 1.809 MB / 376.3 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.1114, allocations: 0.9633 MB / 377.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.1115, allocations: 0 / 377.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006639/0.1122, allocations: 163.5 kB / 377.4 MB, free: 1.617 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.0003311/0.1126, allocations: 127.5 kB / 377.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004257/0.113, allocations: 151.6 kB / 377.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002603/0.1133, allocations: 207.4 kB / 377.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.1134, allocations: 17.53 kB / 377.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.1135, allocations: 91.64 kB / 378 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001262/0.1137, allocations: 79.67 kB / 378.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.1137, allocations: 12 kB / 378.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.1139, allocations: 59.89 kB / 378.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-05/0.114, allocations: 43.84 kB / 378.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.111e-05/0.1141, allocations: 79.53 kB / 378.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003474/0.1144, allocations: 219.2 kB / 378.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1144, allocations: 0 / 378.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1144, allocations: 0 / 378.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1144, allocations: 0 / 378.5 MB, free: 0.5508 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.1954/0.3099, allocations: 0.5269 MB / 379 MB, free: 13.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/0.3099, allocations: 9.625 kB / 379 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.3101, allocations: 20.91 kB / 379 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/0.3105, allocations: 254 kB / 379.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.3105, allocations: 8.516 kB / 379.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.567e-05/0.3106, allocations: 5.25 kB / 379.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.3109, allocations: 117.7 kB / 379.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.3109, allocations: 2.578 kB / 379.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.3109, allocations: 6.594 kB / 379.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.3109, allocations: 1.375 kB / 379.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001581/0.3111, allocations: 53.3 kB / 379.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006178/0.3117, allocations: 0.607 MB / 380.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.312, allocations: 131 kB / 380.2 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.668e-05/0.3121, allocations: 46.03 kB / 380.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.3121, allocations: 5.375 kB / 380.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.3124, allocations: 125.2 kB / 380.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.843e-06/0.3124, allocations: 1.188 kB / 380.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004701/0.3129, allocations: 178.5 kB / 380.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.786e-05/0.3129, allocations: 136.2 kB / 380.7 MB, free: 12.03 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003569/0.3133, allocations: 280.4 kB / 381 MB, free: 11.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.3133, allocations: 30.39 kB / 381 MB, free: 11.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.444e-05/0.3134, allocations: 129 kB / 381.1 MB, free: 11.81 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.539e-05/0.3135, allocations: 28.31 kB / 381.1 MB, free: 11.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.375e-05/0.3135, allocations: 34.41 kB / 381.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.452e-05/0.3136, allocations: 339.4 kB / 381.5 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.005e-05/0.3137, allocations: 27.56 kB / 381.5 MB, free: 11.46 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.3138, allocations: 87.27 kB / 381.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.314, allocations: 93.64 kB / 381.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.314, allocations: 0.9375 kB / 381.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002788/0.3143, allocations: 148.1 kB / 381.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3144, allocations: 5.688 kB / 381.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3144, allocations: 3.688 kB / 381.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.3144, allocations: 3.406 kB / 381.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.3145, allocations: 13.34 kB / 381.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.3145, allocations: 2.75 kB / 381.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.3146, allocations: 18.91 kB / 381.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.3146, allocations: 4.688 kB / 381.9 MB, free: 11.3 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.0001236/0.3148, allocations: 162.7 kB / 382.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.631e-05/0.3148, allocations: 25.48 kB / 382.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.581e-05/0.3149, allocations: 25.48 kB / 382.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3149, allocations: 2.75 kB / 382.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3149, allocations: 0.7031 kB / 382.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3149, allocations: 2.078 kB / 382.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002456/0.3152, allocations: 241.3 kB / 382.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3152, allocations: 0.5312 kB / 382.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.507e-05/0.3152, allocations: 6.25 kB / 382.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3152, allocations: 8 kB / 382.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.3153, allocations: 7.281 kB / 382.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3153, allocations: 1 kB / 382.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.3153, allocations: 4.938 kB / 382.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004135/0.3157, allocations: 177.4 kB / 382.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/0.3158, allocations: 101.6 kB / 382.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.699e-05/0.3158, allocations: 2.125 kB / 382.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.3159, allocations: 14.95 kB / 382.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.934e-05/0.316, allocations: 15.23 kB / 382.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/0.3161, allocations: 4.688 kB / 382.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003469/0.3164, allocations: 208.8 kB / 382.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.442e-06/0.3164, allocations: 0.5 kB / 382.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.3168, allocations: 42.41 kB / 382.9 MB, free: 10.61 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.001075/0.3179, allocations: 426.4 kB / 383.4 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003187/0.3182, allocations: 91.67 kB / 383.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3182, allocations: 1.188 kB / 383.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.3184, allocations: 51 kB / 383.5 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.3187, allocations: 57.73 kB / 383.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006844/0.3194, allocations: 346.4 kB / 383.9 MB, free: 10.01 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.3197, allocations: 0.7387 MB / 384.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.916e-05/0.3198, allocations: 26.77 kB / 384.7 MB, free: 9.297 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.403e-05/0.3199, allocations: 24.92 kB / 384.7 MB, free: 9.285 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3199, allocations: 0 / 384.7 MB, free: 9.285 MB / 318.1 MB Notification: Performance of Templates: time 0.007882/0.3278, allocations: 2.758 MB / 387.4 MB, free: 9.016 MB / 318.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)