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.009649/0.009649, allocations: 100.6 kB / 15.73 MB, free: 6 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.002041/0.002041, allocations: 188.9 kB / 16.67 MB, free: 5.934 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.499/1.499, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.001124/0.001124, allocations: 50.41 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1168, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006407/0.1233, allocations: 4.692 MB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002659/0.126, allocations: 1.272 MB / 379.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003765/0.1264, allocations: 15.94 kB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002994/0.1267, allocations: 114.8 kB / 379.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004694/0.1272, allocations: 237.8 kB / 379.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007136/0.1279, allocations: 303.5 kB / 379.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001042/0.129, allocations: 1.06 MB / 380.9 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004002/0.1294, allocations: 262.4 kB / 381.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005931/0.13, allocations: 406.5 kB / 381.5 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006738/0.1307, allocations: 450.1 kB / 382 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.1308, allocations: 84 kB / 382 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.131, allocations: 111.9 kB / 382.2 MB, free: 8.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.1312, allocations: 187.3 kB / 382.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003675/0.1316, allocations: 437.9 kB / 382.8 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009683/0.1325, allocations: 0.9804 MB / 383.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1326, allocations: 0 / 383.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1326, allocations: 0 / 383.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.1326, allocations: 4 kB / 383.7 MB, free: 6.676 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002346/0.1349, allocations: 1.23 MB / 385 MB, free: 5.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.135, allocations: 11.97 kB / 385 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001615/0.1351, allocations: 104.4 kB / 385.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006477/0.1358, allocations: 465.8 kB / 385.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/0.1359, allocations: 45.69 kB / 385.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.136, allocations: 60.38 kB / 385.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.1374, allocations: 0.6509 MB / 386.3 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.649e-05/0.1374, allocations: 0 / 386.3 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.665e-05/0.1375, allocations: 24 kB / 386.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.1375, allocations: 16 kB / 386.3 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.1392, allocations: 0.6726 MB / 387 MB, free: 3.297 MB / 318.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.003889/0.1431, allocations: 2.305 MB / 389.3 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.1445, allocations: 0.5905 MB / 389.9 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007912/0.1453, allocations: 337.9 kB / 390.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.296e-05/0.1454, allocations: 4.438 kB / 390.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009438/0.1464, allocations: 425.4 kB / 390.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.434e-06/0.1464, allocations: 0 / 390.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06718/0.2136, allocations: 15.42 MB / 406.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.2137, allocations: 149.4 kB / 406.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007508/0.2145, allocations: 0.4911 MB / 406.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002338/0.2148, allocations: 45.7 kB / 406.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003108/0.2151, allocations: 376.7 kB / 407.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003049/0.2154, allocations: 325.2 kB / 407.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003706/0.2158, allocations: 178.5 kB / 407.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.216, allocations: 382.8 kB / 408 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002026/0.218, allocations: 0.7163 MB / 408.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002244/0.2203, allocations: 0.9265 MB / 409.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004311/0.2246, allocations: 1.658 MB / 411.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.2246, allocations: 7.938 kB / 411.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02198/0.2466, allocations: 5.351 MB / 416.7 MB, free: 5.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.646e-05/0.2467, allocations: 63.39 kB / 416.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.2467, allocations: 4 kB / 416.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03212/0.2789, allocations: 6.848 MB / 423.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007156/0.2796, allocations: 135.8 kB / 423.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007039/0.2867, allocations: 3.172 MB / 426.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.2885, allocations: 179.8 kB / 427.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/0.2887, allocations: 39.98 kB / 427.1 MB, free: 10.58 MB / 366.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.0006205/0.2894, allocations: 233.6 kB / 427.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002342/0.2896, allocations: 75.53 kB / 427.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02155/0.3112, allocations: 5.107 MB / 432.5 MB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-05/0.3113, allocations: 8 kB / 432.5 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.3113, allocations: 0 / 432.5 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.409e-05/0.3113, allocations: 7.969 kB / 432.5 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/0.3135, allocations: 1.096 MB / 433.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/0.3136, allocations: 3.938 kB / 433.6 MB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005767/0.3141, allocations: 99.81 kB / 433.7 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03273/0.3469, allocations: 6.789 MB / 440.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000277/0.3472, allocations: 27.97 kB / 440.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006007/0.3532, allocations: 3.048 MB / 443.6 MB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.3533, allocations: 0 / 443.6 MB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02396/0.3772, allocations: 5.984 MB / 449.6 MB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004116/0.3777, allocations: 144.6 kB / 449.7 MB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000417/0.3782, allocations: 20 kB / 449.7 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/0.3798, allocations: 175.8 kB / 449.9 MB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004298/0.3803, allocations: 100.8 kB / 450 MB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.3805, allocations: 31.97 kB / 450 MB, free: 3.449 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005997/0.3811, allocations: 334.9 kB / 450.3 MB, free: 3.125 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3811, allocations: 0 / 450.3 MB, free: 3.125 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00111/0.3822, allocations: 252 kB / 450.6 MB, free: 2.879 MB / 382.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.0003461/0.3825, allocations: 143.1 kB / 450.7 MB, free: 2.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006707/0.3893, allocations: 2.18 MB / 452.9 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.3893, allocations: 0 / 452.9 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2251/0.6144, allocations: 1.088 MB / 454 MB, free: 77.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.6155, allocations: 127 kB / 454.1 MB, free: 77.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00457/0.6201, allocations: 1.743 MB / 455.9 MB, free: 76.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.6207, allocations: 0.9336 MB / 456.8 MB, free: 76.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003118/0.621, allocations: 57.3 kB / 456.9 MB, free: 76.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.6211, allocations: 37.03 kB / 456.9 MB, free: 76.21 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6211, allocations: 0 / 456.9 MB, free: 76.21 MB / 382.1 MB Notification: Performance of Templates: time 0.03455/0.6557, allocations: 22.52 MB / 479.4 MB, free: 63.07 MB / 382.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)