Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.000777/0.000777, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0008654/0.0008652, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.736/1.736, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005676/0.0005678, allocations: 15.98 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2881, allocations: 47.58 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.003683/0.2918, allocations: 4.081 MB / 330.6 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.2939, allocations: 1.23 MB / 331.8 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002273/0.2941, allocations: 9.5 kB / 331.8 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.2943, allocations: 84.2 kB / 331.9 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003421/0.2947, allocations: 205.4 kB / 332.1 MB, free: 12.89 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004594/0.2952, allocations: 221.9 kB / 332.3 MB, free: 12.7 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008288/0.296, allocations: 0.9405 MB / 333.2 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003075/0.2963, allocations: 199.7 kB / 333.4 MB, free: 12 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003758/0.2967, allocations: 343.1 kB / 333.8 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004476/0.2972, allocations: 403.2 kB / 334.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.116e-05/0.2973, allocations: 45.31 kB / 334.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000175/0.2974, allocations: 72.16 kB / 334.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.2976, allocations: 145.9 kB / 334.4 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.2977, allocations: 163 kB / 334.6 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005871/0.2983, allocations: 0.7171 MB / 335.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2983, allocations: 0 / 335.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2983, allocations: 0 / 335.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.2984, allocations: 0 / 335.3 MB, free: 10.64 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.001904/0.3003, allocations: 1.122 MB / 336.4 MB, free: 9.453 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.3003, allocations: 12.03 kB / 336.4 MB, free: 9.441 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.3005, allocations: 86.97 kB / 336.5 MB, free: 9.355 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004968/0.301, allocations: 436.6 kB / 336.9 MB, free: 8.891 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.298e-05/0.301, allocations: 53.27 kB / 337 MB, free: 8.84 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.816e-05/0.3011, allocations: 63.91 kB / 337.1 MB, free: 8.777 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.3024, allocations: 0.6662 MB / 337.7 MB, free: 8.102 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.3025, allocations: 0 / 337.7 MB, free: 8.102 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.833e-05/0.3025, allocations: 24 kB / 337.7 MB, free: 8.078 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/0.3025, allocations: 16 kB / 337.8 MB, free: 8.062 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.3041, allocations: 0.7312 MB / 338.5 MB, free: 7.332 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.003509/0.3076, allocations: 2.363 MB / 340.9 MB, free: 4.812 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.3089, allocations: 0.6452 MB / 341.5 MB, free: 4.16 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006827/0.3096, allocations: 358 kB / 341.8 MB, free: 3.809 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.236e-05/0.3097, allocations: 8.422 kB / 341.9 MB, free: 3.801 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008869/0.3106, allocations: 453.5 kB / 342.3 MB, free: 3.332 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 1.823e-06/0.3106, allocations: 0 / 342.3 MB, free: 3.332 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07665/0.3872, allocations: 16.74 MB / 359 MB, free: 2.492 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.3874, allocations: 141.5 kB / 359.2 MB, free: 2.324 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006304/0.388, allocations: 486.9 kB / 359.6 MB, free: 1.844 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002039/0.3883, allocations: 45.7 kB / 359.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003228/0.3886, allocations: 367.9 kB / 360.1 MB, free: 1.426 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003771/0.389, allocations: 311.5 kB / 360.4 MB, free: 1.117 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.014e-05/0.3891, allocations: 16 kB / 360.4 MB, free: 1.102 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3893, allocations: 382.8 kB / 360.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.3914, allocations: 0.7984 MB / 361.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002212/0.3936, allocations: 0.9967 MB / 362.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002143/0.3957, allocations: 0.8808 MB / 363.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.3958, allocations: 4 kB / 363.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0223/0.4181, allocations: 5.62 MB / 369 MB, free: 8.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.4183, allocations: 59.41 kB / 369.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/0.4183, allocations: 4 kB / 369.1 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03336/0.4517, allocations: 7.328 MB / 376.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007468/0.4524, allocations: 167.8 kB / 376.6 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006815/0.4593, allocations: 3.22 MB / 379.8 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.461, allocations: 223.7 kB / 380 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001586/0.4612, allocations: 43.97 kB / 380.1 MB, free: 13.18 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 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004946/0.4617, allocations: 225.8 kB / 380.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.4619, allocations: 79.05 kB / 380.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02191/0.4838, allocations: 5.466 MB / 385.8 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.206e-05/0.4838, allocations: 8 kB / 385.9 MB, free: 7.367 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.4839, allocations: 3.953 kB / 385.9 MB, free: 7.363 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.609e-05/0.4839, allocations: 3.984 kB / 385.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002339/0.4863, allocations: 1.094 MB / 387 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.4863, allocations: 0 / 387 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/0.4869, allocations: 119.9 kB / 387.1 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03361/0.5205, allocations: 7.285 MB / 394.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002712/0.5208, allocations: 23.97 kB / 394.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005886/0.5267, allocations: 3.102 MB / 397.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.5268, allocations: 3.984 kB / 397.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02449/0.5513, allocations: 6.417 MB / 403.9 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003463/0.5517, allocations: 136.2 kB / 404 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000334/0.5521, allocations: 24 kB / 404.1 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/0.5536, allocations: 207.8 kB / 404.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003638/0.5539, allocations: 104.8 kB / 404.4 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.5541, allocations: 27.98 kB / 404.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004677/0.5545, allocations: 334.9 kB / 404.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5546, allocations: 0 / 404.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001016/0.5556, allocations: 256 kB / 405 MB, free: 4.082 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003245/0.5559, allocations: 135.1 kB / 405.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006965/0.5629, allocations: 2.317 MB / 407.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.5629, allocations: 0 / 407.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003481/0.5664, allocations: 1.168 MB / 408.6 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.5676, allocations: 134.2 kB / 408.7 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00447/0.5721, allocations: 2.038 MB / 410.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006875/0.5728, allocations: 0.9427 MB / 411.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004061/0.5732, allocations: 54.06 kB / 411.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.5734, allocations: 35.44 kB / 411.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of SimCode: time 2.505e-06/0.5734, allocations: 0 / 411.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Templates: time 0.03834/0.6118, allocations: 19.77 MB / 431.6 MB, free: 9.371 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)