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.0008364/0.0008368, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009324/0.0009325, allocations: 172.7 kB / 15.95 MB, free: 208 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.545/1.545, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.0004753/0.0004759, allocations: 12 kB / 278.9 MB, free: 13.05 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.306, allocations: 47.58 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.004542/0.3106, allocations: 4.073 MB / 330.5 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002889/0.3135, allocations: 1.238 MB / 331.8 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003763/0.3139, allocations: 17.38 kB / 331.8 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002368/0.3141, allocations: 79.78 kB / 331.9 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004539/0.3146, allocations: 209.6 kB / 332.1 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006919/0.3153, allocations: 217.2 kB / 332.3 MB, free: 12.7 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001345/0.3167, allocations: 0.9404 MB / 333.2 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004912/0.3172, allocations: 199.6 kB / 333.4 MB, free: 12 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006879/0.3179, allocations: 343.2 kB / 333.8 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000598/0.3185, allocations: 404.4 kB / 334.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.3186, allocations: 48.22 kB / 334.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002473/0.3189, allocations: 67.98 kB / 334.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.3191, allocations: 141.8 kB / 334.4 MB, free: 11.42 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002379/0.3193, allocations: 170.7 kB / 334.6 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008252/0.3201, allocations: 0.7182 MB / 335.3 MB, free: 10.66 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.3202, allocations: 0 / 335.3 MB, free: 10.66 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3202, allocations: 0 / 335.3 MB, free: 10.66 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.3202, allocations: 0 / 335.3 MB, free: 10.66 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.002252/0.3224, allocations: 1.114 MB / 336.4 MB, free: 9.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.3225, allocations: 12.03 kB / 336.4 MB, free: 9.469 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001604/0.3227, allocations: 86.97 kB / 336.5 MB, free: 9.383 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005861/0.3233, allocations: 448.4 kB / 336.9 MB, free: 8.906 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.168e-05/0.3233, allocations: 53.27 kB / 337 MB, free: 8.855 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.3234, allocations: 59.91 kB / 337.1 MB, free: 8.797 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.3248, allocations: 0.6545 MB / 337.7 MB, free: 8.133 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.3248, allocations: 0 / 337.7 MB, free: 8.133 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.203e-05/0.3249, allocations: 24 kB / 337.7 MB, free: 8.109 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.3249, allocations: 16 kB / 337.7 MB, free: 8.094 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.3265, allocations: 0.7351 MB / 338.5 MB, free: 7.359 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.003533/0.33, allocations: 2.378 MB / 340.9 MB, free: 4.824 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.3314, allocations: 0.6335 MB / 341.5 MB, free: 4.184 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007011/0.3321, allocations: 366 kB / 341.8 MB, free: 3.824 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.489e-05/0.3322, allocations: 4.438 kB / 341.9 MB, free: 3.82 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009281/0.3331, allocations: 457.4 kB / 342.3 MB, free: 3.348 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.054e-06/0.3331, allocations: 4 kB / 342.3 MB, free: 3.344 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06473/0.3979, allocations: 16.73 MB / 359 MB, free: 2.516 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.398, allocations: 145.5 kB / 359.2 MB, free: 2.344 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008347/0.3989, allocations: 490.8 kB / 359.7 MB, free: 1.859 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002936/0.3992, allocations: 41.7 kB / 359.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003858/0.3996, allocations: 367.9 kB / 360.1 MB, free: 1.445 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005493/0.4001, allocations: 315.5 kB / 360.4 MB, free: 1.133 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.4003, allocations: 20 kB / 360.4 MB, free: 1.113 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.4005, allocations: 382.8 kB / 360.8 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/0.4025, allocations: 0.7905 MB / 361.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002142/0.4047, allocations: 0.9968 MB / 362.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002124/0.4068, allocations: 0.8769 MB / 363.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.4068, allocations: 4 kB / 363.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02179/0.4286, allocations: 5.62 MB / 369 MB, free: 8.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.692e-05/0.4287, allocations: 63.39 kB / 369.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.832e-05/0.4288, allocations: 4.125 kB / 369.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03241/0.4612, allocations: 7.32 MB / 376.4 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007589/0.462, allocations: 175.7 kB / 376.6 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006871/0.4689, allocations: 3.216 MB / 379.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.4707, allocations: 227.8 kB / 380 MB, free: 13.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001762/0.4709, allocations: 44.22 kB / 380.1 MB, free: 13.2 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.0005878/0.4715, allocations: 221.7 kB / 380.3 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.4717, allocations: 79 kB / 380.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02114/0.4929, allocations: 5.47 MB / 385.8 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.02e-05/0.4929, allocations: 8 kB / 385.9 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.4929, allocations: 3.953 kB / 385.9 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/0.493, allocations: 3.984 kB / 385.9 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/0.4948, allocations: 1.086 MB / 386.9 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.4948, allocations: 0 / 386.9 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005457/0.4954, allocations: 127.8 kB / 387.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03147/0.5269, allocations: 7.285 MB / 394.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00027/0.5272, allocations: 19.98 kB / 394.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005951/0.5332, allocations: 3.11 MB / 397.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.5332, allocations: 0 / 397.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02369/0.5569, allocations: 6.409 MB / 403.9 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003502/0.5573, allocations: 140.2 kB / 404 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/0.5576, allocations: 23.98 kB / 404.1 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/0.5592, allocations: 215.8 kB / 404.3 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003028/0.5595, allocations: 100.8 kB / 404.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/0.5596, allocations: 36.22 kB / 404.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004599/0.5601, allocations: 330.9 kB / 404.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5601, allocations: 0 / 404.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009397/0.5611, allocations: 256 kB / 405 MB, free: 4.098 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.0003104/0.5614, allocations: 131.2 kB / 405.1 MB, free: 3.961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006588/0.568, allocations: 2.318 MB / 407.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.568, allocations: 8.125 kB / 407.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003358/0.5714, allocations: 1.163 MB / 408.6 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008757/0.5723, allocations: 122.2 kB / 408.7 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00433/0.5766, allocations: 2.042 MB / 410.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.5771, allocations: 0.9427 MB / 411.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003268/0.5775, allocations: 58.06 kB / 411.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.5776, allocations: 31.44 kB / 411.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5776, allocations: 0 / 411.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of Templates: time 0.0345/0.6121, allocations: 19.77 MB / 431.6 MB, free: 9.391 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)