Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.0008583/0.0008583, allocations: 97.8 kB / 15.36 MB, free: 0.7344 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.005867/0.005868, allocations: 170.5 kB / 16.27 MB, free: 6.652 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.596/1.596, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.0006556/0.0006557, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2508, allocations: 47.59 MB / 327 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.004465/0.2553, allocations: 4.31 MB / 331.3 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002957/0.2583, allocations: 1.273 MB / 332.6 MB, free: 12.91 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003537/0.2587, allocations: 9.062 kB / 332.6 MB, free: 12.91 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002365/0.259, allocations: 83.95 kB / 332.7 MB, free: 12.83 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004703/0.2594, allocations: 216.9 kB / 332.9 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006847/0.2601, allocations: 254.8 kB / 333.2 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001077/0.2612, allocations: 0.9947 MB / 334.2 MB, free: 11.84 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003593/0.2616, allocations: 216.8 kB / 334.4 MB, free: 11.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004685/0.2621, allocations: 351.7 kB / 334.7 MB, free: 11.52 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004775/0.2625, allocations: 407.2 kB / 335.1 MB, free: 11.25 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.052e-05/0.2626, allocations: 42.53 kB / 335.1 MB, free: 11.21 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.2628, allocations: 67.98 kB / 335.2 MB, free: 11.14 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.263, allocations: 147.3 kB / 335.4 MB, free: 11 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003478/0.2633, allocations: 407.7 kB / 335.8 MB, free: 10.59 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007541/0.2641, allocations: 0.908 MB / 336.7 MB, free: 9.684 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2641, allocations: 0 / 336.7 MB, free: 9.684 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.2641, allocations: 0 / 336.7 MB, free: 9.684 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.2641, allocations: 3.938 kB / 336.7 MB, free: 9.68 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002226/0.2664, allocations: 1.106 MB / 337.8 MB, free: 8.508 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.2664, allocations: 12.03 kB / 337.8 MB, free: 8.496 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.2666, allocations: 95.89 kB / 337.9 MB, free: 8.402 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005746/0.2672, allocations: 461.4 kB / 338.3 MB, free: 7.91 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.235e-05/0.2672, allocations: 49.69 kB / 338.4 MB, free: 7.863 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.2673, allocations: 64.36 kB / 338.4 MB, free: 7.801 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.2688, allocations: 0.6704 MB / 339.1 MB, free: 7.121 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.2688, allocations: 0 / 339.1 MB, free: 7.121 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.992e-05/0.2689, allocations: 28 kB / 339.1 MB, free: 7.094 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.2689, allocations: 12 kB / 339.2 MB, free: 7.082 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001704/0.2706, allocations: 0.7351 MB / 339.9 MB, free: 6.348 MB / 270.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.003834/0.2745, allocations: 2.374 MB / 342.3 MB, free: 3.816 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.276, allocations: 0.6412 MB / 342.9 MB, free: 3.168 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007588/0.2767, allocations: 358 kB / 343.3 MB, free: 2.816 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.107e-05/0.2768, allocations: 16.41 kB / 343.3 MB, free: 2.801 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001049/0.2779, allocations: 453.4 kB / 343.7 MB, free: 2.332 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.585e-06/0.2779, allocations: 7.938 kB / 343.7 MB, free: 2.324 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07147/0.3494, allocations: 16.73 MB / 360.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.3495, allocations: 145.5 kB / 360.6 MB, free: 1.324 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006812/0.3502, allocations: 0.491 MB / 361.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002378/0.3504, allocations: 45.7 kB / 361.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003746/0.3508, allocations: 360 kB / 361.5 MB, free: 428 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003128/0.3512, allocations: 315.4 kB / 361.8 MB, free: 108 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.3513, allocations: 85.61 kB / 361.9 MB, free: 16 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.3515, allocations: 382.8 kB / 362.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002102/0.3536, allocations: 0.7983 MB / 363 MB, free: 14.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002212/0.3558, allocations: 1.005 MB / 364 MB, free: 13.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004236/0.3601, allocations: 1.814 MB / 365.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.3601, allocations: 0 / 365.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02604/0.3862, allocations: 5.721 MB / 371.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.189e-05/0.3863, allocations: 63.41 kB / 371.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.166e-05/0.3863, allocations: 4 kB / 371.6 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03556/0.4219, allocations: 7.321 MB / 379 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007429/0.4227, allocations: 175.7 kB / 379.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006895/0.4296, allocations: 3.227 MB / 382.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/0.4314, allocations: 215.8 kB / 382.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.4316, allocations: 47.97 kB / 382.6 MB, free: 10.98 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.0004772/0.4321, allocations: 225.6 kB / 382.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.4322, allocations: 79.06 kB / 382.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02389/0.4561, allocations: 5.466 MB / 388.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.493e-05/0.4562, allocations: 16 kB / 388.4 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/0.4562, allocations: 0 / 388.4 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-05/0.4563, allocations: 3.984 kB / 388.4 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.4582, allocations: 1.082 MB / 389.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.4582, allocations: 3.938 kB / 389.5 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000601/0.4588, allocations: 131.8 kB / 389.6 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03573/0.4945, allocations: 7.281 MB / 396.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002669/0.4949, allocations: 31.97 kB / 396.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005917/0.5008, allocations: 3.11 MB / 400 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5008, allocations: 0 / 400 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02592/0.5268, allocations: 6.421 MB / 406.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002516/0.5271, allocations: 144.2 kB / 406.6 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.5272, allocations: 23.94 kB / 406.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.5286, allocations: 211.8 kB / 406.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002442/0.5289, allocations: 100.9 kB / 406.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.408e-05/0.529, allocations: 27.98 kB / 407 MB, free: 2.422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003649/0.5293, allocations: 338.9 kB / 407.3 MB, free: 2.094 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5293, allocations: 0 / 407.3 MB, free: 2.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006994/0.53, allocations: 256 kB / 407.5 MB, free: 1.844 MB / 334.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.0002771/0.5303, allocations: 123.3 kB / 407.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006914/0.5372, allocations: 2.328 MB / 410 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.5373, allocations: 5.062 kB / 410 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003538/0.5408, allocations: 1.163 MB / 411.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000814/0.5417, allocations: 122.2 kB / 411.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003896/0.5456, allocations: 2.14 MB / 413.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.546, allocations: 0.9388 MB / 414.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002791/0.5463, allocations: 58.06 kB / 414.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.5464, allocations: 31.44 kB / 414.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5464, allocations: 0 / 414.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of Templates: time 0.03095/0.5774, allocations: 20.4 MB / 434.8 MB, free: 6.426 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)