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.001406/0.001406, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001441/0.001441, allocations: 192.2 kB / 16.13 MB, free: 6.715 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.62/1.62, allocations: 205.1 MB / 222 MB, free: 4.75 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.001222/0.001222, allocations: 55.92 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2285, allocations: 46.62 MB / 324.7 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002956/0.2315, allocations: 1.87 MB / 326.5 MB, free: 484 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.2329, allocations: 0.9364 MB / 327.5 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.2331, allocations: 1.5 kB / 327.5 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000574/0.2337, allocations: 173 kB / 327.6 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002495/0.2339, allocations: 100.2 kB / 327.7 MB, free: 15.58 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003449/0.2343, allocations: 146.6 kB / 327.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002191/0.2345, allocations: 203.1 kB / 328.1 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.2346, allocations: 24.3 kB / 328.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.2348, allocations: 72.42 kB / 328.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.2349, allocations: 85.56 kB / 328.3 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.41e-05/0.2349, allocations: 4.625 kB / 328.3 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.235, allocations: 43.92 kB / 328.3 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.41e-05/0.2351, allocations: 46.77 kB / 328.4 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.069e-05/0.2352, allocations: 70.34 kB / 328.4 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002573/0.2355, allocations: 204.5 kB / 328.6 MB, free: 15.03 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.2355, allocations: 0 / 328.6 MB, free: 15.03 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2355, allocations: 4 kB / 328.6 MB, free: 15.03 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.2355, allocations: 5.156 kB / 328.6 MB, free: 15.02 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.0008097/0.2363, allocations: 0.5135 MB / 329.1 MB, free: 14.52 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2364, allocations: 10.19 kB / 329.2 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.724e-05/0.2364, allocations: 32.95 kB / 329.2 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.2367, allocations: 252.8 kB / 329.4 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.2367, allocations: 7.562 kB / 329.4 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.2367, allocations: 16.88 kB / 329.5 MB, free: 14.22 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.237, allocations: 117.9 kB / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.237, allocations: 0 / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.237, allocations: 2.562 kB / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.237, allocations: 1.219 kB / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001413/0.2372, allocations: 53.91 kB / 329.6 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005761/0.2378, allocations: 0.5973 MB / 330.2 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/0.238, allocations: 137.2 kB / 330.4 MB, free: 13.35 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.2381, allocations: 45.31 kB / 330.4 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.2382, allocations: 1.094 kB / 330.4 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.2384, allocations: 140.8 kB / 330.5 MB, free: 13.19 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.2384, allocations: 0 / 330.5 MB, free: 13.19 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004445/0.2388, allocations: 165.5 kB / 330.7 MB, free: 13.1 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.859e-05/0.2389, allocations: 135.2 kB / 330.8 MB, free: 12.94 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002832/0.2392, allocations: 290.6 kB / 331.1 MB, free: 12.75 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.2392, allocations: 27.98 kB / 331.1 MB, free: 12.71 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.486e-05/0.2393, allocations: 129.2 kB / 331.3 MB, free: 12.59 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.2394, allocations: 24.03 kB / 331.3 MB, free: 12.57 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-05/0.2394, allocations: 33.27 kB / 331.3 MB, free: 12.55 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.2395, allocations: 336.4 kB / 331.7 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.083e-05/0.2396, allocations: 28.98 kB / 331.7 MB, free: 12.2 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.2398, allocations: 90.84 kB / 331.8 MB, free: 12.12 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.2399, allocations: 96.14 kB / 331.9 MB, free: 12.04 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.24, allocations: 1.219 kB / 331.9 MB, free: 12.04 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002558/0.2402, allocations: 141 kB / 332 MB, free: 11.96 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.2402, allocations: 5.719 kB / 332 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2402, allocations: 1.156 kB / 332 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.2403, allocations: 2.312 kB / 332 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.333e-05/0.2404, allocations: 23.48 kB / 332 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.2404, allocations: 2.219 kB / 332 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.2405, allocations: 15.55 kB / 332.1 MB, free: 11.94 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.2405, allocations: 9.406 kB / 332.1 MB, free: 11.93 MB / 270.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.0001202/0.2406, allocations: 151.8 kB / 332.2 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.2407, allocations: 21.91 kB / 332.2 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.836e-05/0.2407, allocations: 24.86 kB / 332.3 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2407, allocations: 2.969 kB / 332.3 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2407, allocations: 0 / 332.3 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2407, allocations: 5.25 kB / 332.3 MB, free: 11.76 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002259/0.241, allocations: 243.5 kB / 332.5 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.241, allocations: 4.969 kB / 332.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.731e-05/0.241, allocations: 8.344 kB / 332.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.241, allocations: 2.281 kB / 332.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.2411, allocations: 5 kB / 332.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.2411, allocations: 6.25 kB / 332.5 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2411, allocations: 3.984 kB / 332.5 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003043/0.2414, allocations: 178.7 kB / 332.7 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.666e-05/0.2414, allocations: 95.64 kB / 332.8 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.2415, allocations: 2.656 kB / 332.8 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.867e-05/0.2416, allocations: 17.45 kB / 332.8 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.959e-05/0.2417, allocations: 18.97 kB / 332.8 MB, free: 11.22 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.2417, allocations: 7.656 kB / 332.8 MB, free: 11.22 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.2419, allocations: 210.2 kB / 333.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2419, allocations: 0 / 333.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002543/0.2421, allocations: 35.56 kB / 333.1 MB, free: 11.08 MB / 270.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.0008902/0.243, allocations: 424.2 kB / 333.5 MB, free: 10.71 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002549/0.2433, allocations: 89.03 kB / 333.6 MB, free: 10.68 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2433, allocations: 1.125 kB / 333.6 MB, free: 10.68 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.2435, allocations: 58.03 kB / 333.6 MB, free: 10.65 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/0.2438, allocations: 55.08 kB / 333.7 MB, free: 10.62 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005357/0.2443, allocations: 389.7 kB / 334.1 MB, free: 10.26 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.2446, allocations: 0.7322 MB / 334.8 MB, free: 9.5 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.66e-05/0.2447, allocations: 21.53 kB / 334.8 MB, free: 9.48 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.705e-05/0.2447, allocations: 23.42 kB / 334.9 MB, free: 9.457 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2447, allocations: 0 / 334.9 MB, free: 9.457 MB / 270.1 MB Notification: Performance of Templates: time 0.005191/0.2499, allocations: 2.561 MB / 337.4 MB, free: 6.895 MB / 270.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)