Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 101.2 kB / 16.62 MB, free: 6.809 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.00181/0.00181, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.576/1.576, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001748/0.001747, allocations: 47.94 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1254, allocations: 46.62 MB / 326.1 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005783/0.1312, allocations: 4.734 MB / 330.9 MB, free: 36 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.1337, allocations: 1.261 MB / 332.1 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002878/0.134, allocations: 8 kB / 332.1 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.1344, allocations: 87.3 kB / 332.2 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004482/0.1348, allocations: 214.2 kB / 332.4 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006815/0.1355, allocations: 259.7 kB / 332.7 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.1366, allocations: 1.044 MB / 333.7 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.137, allocations: 258.4 kB / 334 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004359/0.1374, allocations: 406.5 kB / 334.4 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004716/0.1379, allocations: 462.1 kB / 334.8 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.138, allocations: 84 kB / 334.9 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001978/0.1382, allocations: 108 kB / 335 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.1384, allocations: 183.4 kB / 335.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003534/0.1387, allocations: 429.9 kB / 335.6 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008088/0.1396, allocations: 0.9657 MB / 336.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.1396, allocations: 3.984 kB / 336.6 MB, free: 10.28 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1396, allocations: 0 / 336.6 MB, free: 10.28 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1396, allocations: 3.938 kB / 336.6 MB, free: 10.28 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.00235/0.142, allocations: 1.204 MB / 337.8 MB, free: 9.004 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.142, allocations: 11.97 kB / 337.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.1422, allocations: 91.91 kB / 337.9 MB, free: 8.902 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/0.1427, allocations: 465.4 kB / 338.3 MB, free: 8.406 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/0.1428, allocations: 41.69 kB / 338.4 MB, free: 8.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.1429, allocations: 68.36 kB / 338.5 MB, free: 8.301 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.1442, allocations: 0.6314 MB / 339.1 MB, free: 7.66 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.1442, allocations: 0 / 339.1 MB, free: 7.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.1444, allocations: 28 kB / 339.1 MB, free: 7.633 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.1444, allocations: 16 kB / 339.1 MB, free: 7.617 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.1459, allocations: 0.6765 MB / 339.8 MB, free: 6.941 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003707/0.1496, allocations: 2.347 MB / 342.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.1511, allocations: 0.5788 MB / 342.7 MB, free: 3.855 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007006/0.1518, allocations: 330 kB / 343.1 MB, free: 3.531 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.42e-05/0.1518, allocations: 12.42 kB / 343.1 MB, free: 3.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000966/0.1528, allocations: 425.4 kB / 343.5 MB, free: 3.078 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.565e-06/0.1528, allocations: 0 / 343.5 MB, free: 3.078 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06889/0.2217, allocations: 15.41 MB / 358.9 MB, free: 3.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.2219, allocations: 141.5 kB / 359 MB, free: 3.398 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006791/0.2226, allocations: 498.8 kB / 359.5 MB, free: 2.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001873/0.2228, allocations: 41.7 kB / 359.6 MB, free: 2.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/0.223, allocations: 363.9 kB / 359.9 MB, free: 2.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003273/0.2234, allocations: 311.5 kB / 360.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004619/0.2238, allocations: 182.5 kB / 360.4 MB, free: 2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002641/0.2241, allocations: 382.8 kB / 360.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00204/0.2262, allocations: 0.7163 MB / 361.5 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002078/0.2283, allocations: 0.9303 MB / 362.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00411/0.2324, allocations: 1.662 MB / 364.1 MB, free: 14.15 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.2324, allocations: 0 / 364.1 MB, free: 14.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02374/0.2562, allocations: 5.351 MB / 369.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.8e-05/0.2563, allocations: 67.39 kB / 369.5 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/0.2563, allocations: 8.125 kB / 369.5 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03441/0.2907, allocations: 6.843 MB / 376.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006889/0.2915, allocations: 147.7 kB / 376.5 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1823/0.4738, allocations: 3.148 MB / 379.6 MB, free: 52.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001865/0.4757, allocations: 181.5 kB / 379.8 MB, free: 52.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.4758, allocations: 45.83 kB / 379.9 MB, free: 52.95 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0004417/0.4763, allocations: 226 kB / 380.1 MB, free: 52.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.4764, allocations: 75.73 kB / 380.2 MB, free: 52.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0225/0.499, allocations: 5.102 MB / 385.3 MB, free: 52.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.466e-05/0.499, allocations: 11.88 kB / 385.3 MB, free: 52.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.499, allocations: 0.8125 kB / 385.3 MB, free: 52.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.096e-05/0.4991, allocations: 4.969 kB / 385.3 MB, free: 52.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001373/0.5004, allocations: 1.091 MB / 386.4 MB, free: 51.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.5005, allocations: 0 / 386.4 MB, free: 51.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000497/0.501, allocations: 98.5 kB / 386.5 MB, free: 51.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03127/0.5322, allocations: 6.798 MB / 393.3 MB, free: 50.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002907/0.5326, allocations: 26.62 kB / 393.3 MB, free: 50.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004804/0.5374, allocations: 3.057 MB / 396.3 MB, free: 48.19 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.5374, allocations: 0 / 396.3 MB, free: 48.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02673/0.5642, allocations: 5.976 MB / 402.3 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002989/0.5645, allocations: 143.3 kB / 402.5 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002448/0.5648, allocations: 20 kB / 402.5 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001984/0.5668, allocations: 175.8 kB / 402.6 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003557/0.5672, allocations: 100.6 kB / 402.7 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.5673, allocations: 35.97 kB / 402.8 MB, free: 42.26 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004569/0.5678, allocations: 330.9 kB / 403.1 MB, free: 41.94 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5678, allocations: 0 / 403.1 MB, free: 41.94 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00108/0.5689, allocations: 254.2 kB / 403.4 MB, free: 41.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003232/0.5692, allocations: 135 kB / 403.5 MB, free: 41.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00914/0.5784, allocations: 2.185 MB / 405.7 MB, free: 39.35 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/0.5784, allocations: 0 / 405.7 MB, free: 39.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00468/0.5831, allocations: 1.086 MB / 406.8 MB, free: 38.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.5843, allocations: 133.7 kB / 406.9 MB, free: 38.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004883/0.5892, allocations: 2.069 MB / 409 MB, free: 36.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.5896, allocations: 0.9414 MB / 409.9 MB, free: 35.12 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004472/0.5901, allocations: 58.06 kB / 410 MB, free: 35.06 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.5902, allocations: 35.44 kB / 410 MB, free: 35.02 MB / 318.1 MB Notification: Performance of SimCode: time 3.046e-06/0.5903, allocations: 3.938 kB / 410 MB, free: 35.02 MB / 318.1 MB Notification: Performance of Templates: time 0.03749/0.6278, allocations: 21.93 MB / 431.9 MB, free: 13.08 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)