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.001065/0.001064, allocations: 89.53 kB / 16.65 MB, free: 6.535 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.001211/0.001211, allocations: 174 kB / 17.56 MB, free: 6.184 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.582/1.582, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004695/0.0004696, allocations: 12 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09247/0.09295, allocations: 47.59 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.004547/0.09754, allocations: 4.309 MB / 332.6 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002634/0.1002, allocations: 1.265 MB / 333.9 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003232/0.1006, allocations: 16 kB / 333.9 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002455/0.1008, allocations: 83.3 kB / 334 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004564/0.1013, allocations: 218.2 kB / 334.2 MB, free: 13.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005952/0.1019, allocations: 251.7 kB / 334.4 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009262/0.1028, allocations: 0.9898 MB / 335.4 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003604/0.1032, allocations: 219.3 kB / 335.7 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000413/0.1036, allocations: 350.5 kB / 336 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004718/0.1041, allocations: 406.1 kB / 336.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.076e-05/0.1042, allocations: 44 kB / 336.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/0.1044, allocations: 75.95 kB / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.1045, allocations: 135.4 kB / 336.6 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003646/0.1049, allocations: 411.6 kB / 337 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007924/0.1057, allocations: 0.9108 MB / 338 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1057, allocations: 0 / 338 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1057, allocations: 0 / 338 MB, free: 10.04 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1057, allocations: 0 / 338 MB, free: 10.04 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.002249/0.108, allocations: 1.122 MB / 339.1 MB, free: 8.855 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.108, allocations: 8.031 kB / 339.1 MB, free: 8.848 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.1082, allocations: 87.98 kB / 339.2 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.1087, allocations: 465.4 kB / 339.6 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.038e-05/0.1088, allocations: 45.69 kB / 339.7 MB, free: 8.223 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.1089, allocations: 60.38 kB / 339.7 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.1103, allocations: 0.6705 MB / 340.4 MB, free: 7.484 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.1103, allocations: 3.906 kB / 340.4 MB, free: 7.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.564e-05/0.1104, allocations: 24 kB / 340.4 MB, free: 7.457 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.1104, allocations: 16 kB / 340.4 MB, free: 7.441 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.1121, allocations: 0.7351 MB / 341.2 MB, free: 6.707 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.003636/0.1157, allocations: 2.378 MB / 343.6 MB, free: 4.176 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.1172, allocations: 0.6413 MB / 344.2 MB, free: 3.523 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000754/0.118, allocations: 358 kB / 344.5 MB, free: 3.172 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.595e-05/0.118, allocations: 12.44 kB / 344.6 MB, free: 3.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009667/0.119, allocations: 453.4 kB / 345 MB, free: 2.691 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.334e-06/0.119, allocations: 0 / 345 MB, free: 2.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.0721/0.1911, allocations: 16.74 MB / 361.7 MB, free: 1.852 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.1913, allocations: 145.5 kB / 361.9 MB, free: 1.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006476/0.192, allocations: 494.8 kB / 362.4 MB, free: 1.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001752/0.1921, allocations: 41.7 kB / 362.4 MB, free: 1.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/0.1924, allocations: 367.9 kB / 362.8 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002853/0.1927, allocations: 323.4 kB / 363.1 MB, free: 464 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.1929, allocations: 81.67 kB / 363.2 MB, free: 376 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1931, allocations: 382.8 kB / 363.5 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002103/0.1952, allocations: 0.7944 MB / 364.3 MB, free: 15.19 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002217/0.1974, allocations: 1.001 MB / 365.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00426/0.2017, allocations: 1.818 MB / 367.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.2017, allocations: 0 / 367.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02473/0.2264, allocations: 5.714 MB / 372.9 MB, free: 6.469 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.59e-05/0.2265, allocations: 63.39 kB / 372.9 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.2266, allocations: 8 kB / 372.9 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1924/0.419, allocations: 7.319 MB / 380.3 MB, free: 51.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007396/0.4198, allocations: 170.6 kB / 380.4 MB, free: 51.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006626/0.4264, allocations: 3.225 MB / 383.6 MB, free: 50.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.4281, allocations: 223.1 kB / 383.9 MB, free: 50.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.4282, allocations: 44.66 kB / 383.9 MB, free: 50.92 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.0003707/0.4286, allocations: 226.5 kB / 384.1 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.4287, allocations: 77.44 kB / 384.2 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02224/0.451, allocations: 5.466 MB / 389.7 MB, free: 50.15 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-05/0.4511, allocations: 11.81 kB / 389.7 MB, free: 50.15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.4511, allocations: 0 / 389.7 MB, free: 50.15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/0.4511, allocations: 6.422 kB / 389.7 MB, free: 50.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.4523, allocations: 1.08 MB / 390.8 MB, free: 49.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.4524, allocations: 0.875 kB / 390.8 MB, free: 49.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005493/0.4529, allocations: 128.8 kB / 390.9 MB, free: 49.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03317/0.4861, allocations: 7.286 MB / 398.2 MB, free: 47.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001907/0.4863, allocations: 27.97 kB / 398.2 MB, free: 47.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004847/0.4912, allocations: 3.104 MB / 401.3 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4912, allocations: 0 / 401.3 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02316/0.5144, allocations: 6.43 MB / 407.7 MB, free: 37.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002291/0.5147, allocations: 144.2 kB / 407.9 MB, free: 37.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.5148, allocations: 20 kB / 407.9 MB, free: 37.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.5162, allocations: 211.8 kB / 408.1 MB, free: 37.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.5164, allocations: 100.9 kB / 408.2 MB, free: 37.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.215e-05/0.5165, allocations: 27.97 kB / 408.2 MB, free: 37.31 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003112/0.5168, allocations: 342.8 kB / 408.6 MB, free: 36.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5168, allocations: 0 / 408.6 MB, free: 36.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006788/0.5175, allocations: 255.9 kB / 408.8 MB, free: 36.73 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.0002437/0.5177, allocations: 129 kB / 408.9 MB, free: 36.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006251/0.524, allocations: 2.33 MB / 411.3 MB, free: 34.24 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.524, allocations: 0 / 411.3 MB, free: 34.24 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003261/0.5273, allocations: 1.161 MB / 412.4 MB, free: 33.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008083/0.5281, allocations: 129.2 kB / 412.6 MB, free: 32.96 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003409/0.5316, allocations: 2.132 MB / 414.7 MB, free: 30.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.5319, allocations: 0.9386 MB / 415.6 MB, free: 29.85 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002678/0.5321, allocations: 58.77 kB / 415.7 MB, free: 29.79 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.5322, allocations: 27.44 kB / 415.7 MB, free: 29.77 MB / 318.1 MB Notification: Performance of SimCode: time 2.043e-06/0.5322, allocations: 0 / 415.7 MB, free: 29.77 MB / 318.1 MB Notification: Performance of Templates: time 0.02416/0.5564, allocations: 20.41 MB / 436.1 MB, free: 9.348 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)