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.0009885/0.0009888, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009616/0.0009617, allocations: 177.3 kB / 15.95 MB, free: 216 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.58/1.58, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004713/0.0004716, allocations: 16 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2823, allocations: 47.58 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.004611/0.287, allocations: 3.785 MB / 330.2 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.2893, allocations: 1.269 MB / 331.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002815/0.2896, allocations: 12.91 kB / 331.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.2897, allocations: 80.55 kB / 331.6 MB, free: 13.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005577/0.2903, allocations: 271.7 kB / 331.9 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006115/0.2909, allocations: 209.2 kB / 332.1 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000962/0.2919, allocations: 0.6661 MB / 332.7 MB, free: 12.5 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003899/0.2923, allocations: 203.5 kB / 332.9 MB, free: 12.37 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000511/0.2928, allocations: 349.8 kB / 333.3 MB, free: 12.18 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006029/0.2934, allocations: 407.8 kB / 333.7 MB, free: 11.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.2935, allocations: 48.66 kB / 333.7 MB, free: 11.9 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002106/0.2937, allocations: 65.95 kB / 333.8 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.2939, allocations: 138.1 kB / 333.9 MB, free: 11.78 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.2941, allocations: 166.8 kB / 334.1 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007062/0.2948, allocations: 0.7193 MB / 334.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2948, allocations: 0 / 334.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2948, allocations: 0 / 334.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.2948, allocations: 0 / 334.8 MB, free: 11.13 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.0022/0.297, allocations: 1.118 MB / 335.9 MB, free: 9.945 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.2971, allocations: 8.031 kB / 335.9 MB, free: 9.938 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.2973, allocations: 86.97 kB / 336 MB, free: 9.852 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006331/0.2979, allocations: 452.5 kB / 336.4 MB, free: 9.371 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.044e-05/0.298, allocations: 49.27 kB / 336.5 MB, free: 9.324 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.2981, allocations: 63.91 kB / 336.6 MB, free: 9.262 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.2995, allocations: 0.6506 MB / 337.2 MB, free: 8.602 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.2995, allocations: 0 / 337.2 MB, free: 8.602 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.2996, allocations: 24 kB / 337.2 MB, free: 8.578 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.2996, allocations: 12 kB / 337.2 MB, free: 8.566 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.3012, allocations: 0.739 MB / 338 MB, free: 7.828 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.003512/0.3047, allocations: 2.371 MB / 340.4 MB, free: 5.301 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.3063, allocations: 0.6335 MB / 341 MB, free: 4.66 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.653e-05/0.3063, allocations: 8.422 kB / 341 MB, free: 4.652 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001007/0.3073, allocations: 457.4 kB / 341.4 MB, free: 4.18 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.244e-06/0.3073, allocations: 0 / 341.4 MB, free: 4.18 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06627/0.3736, allocations: 16.7 MB / 358.1 MB, free: 3.379 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.3738, allocations: 145.5 kB / 358.3 MB, free: 3.207 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006486/0.3744, allocations: 494.9 kB / 358.8 MB, free: 2.719 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002075/0.3747, allocations: 41.7 kB / 358.8 MB, free: 2.672 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003148/0.375, allocations: 363.9 kB / 359.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003813/0.3754, allocations: 315.5 kB / 359.5 MB, free: 1.996 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.289e-05/0.3755, allocations: 20 kB / 359.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.3757, allocations: 386.7 kB / 359.9 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002082/0.3778, allocations: 0.7905 MB / 360.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.3799, allocations: 0.9968 MB / 361.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002105/0.3821, allocations: 0.8652 MB / 362.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.3821, allocations: 4 kB / 362.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0223/0.4044, allocations: 5.62 MB / 368.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.988e-05/0.4045, allocations: 71.33 kB / 368.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.4045, allocations: 4 kB / 368.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03369/0.4382, allocations: 7.324 MB / 375.5 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007336/0.439, allocations: 167.8 kB / 375.7 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006539/0.4456, allocations: 3.219 MB / 378.9 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.4473, allocations: 223.8 kB / 379.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/0.4475, allocations: 43.97 kB / 379.2 MB, free: 14.07 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.0005329/0.448, allocations: 225.7 kB / 379.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002514/0.4483, allocations: 75.06 kB / 379.5 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02158/0.4699, allocations: 5.47 MB / 384.9 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/0.4699, allocations: 12 kB / 385 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.4699, allocations: 3.953 kB / 385 MB, free: 8.246 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/0.47, allocations: 3.984 kB / 385 MB, free: 8.242 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.4715, allocations: 1.082 MB / 386.1 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.4715, allocations: 4 kB / 386.1 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/0.4721, allocations: 123.8 kB / 386.2 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03262/0.5047, allocations: 7.289 MB / 393.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002047/0.505, allocations: 19.98 kB / 393.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00539/0.5104, allocations: 3.102 MB / 396.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5104, allocations: 4 kB / 396.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02398/0.5344, allocations: 6.417 MB / 403 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.5347, allocations: 140.2 kB / 403.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002923/0.535, allocations: 24.06 kB / 403.2 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/0.5365, allocations: 211.8 kB / 403.4 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002708/0.5368, allocations: 96.84 kB / 403.5 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.038e-05/0.5369, allocations: 35.97 kB / 403.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003779/0.5373, allocations: 326.9 kB / 403.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5373, allocations: 0 / 403.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007906/0.5381, allocations: 252 kB / 404.1 MB, free: 4.977 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.0002745/0.5384, allocations: 135.2 kB / 404.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006507/0.5449, allocations: 2.317 MB / 406.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.5449, allocations: 0 / 406.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003278/0.5482, allocations: 1.164 MB / 407.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006634/0.5489, allocations: 110.2 kB / 407.8 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004011/0.5529, allocations: 2.044 MB / 409.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.5534, allocations: 0.9583 MB / 410.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002948/0.5537, allocations: 58.02 kB / 410.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.5539, allocations: 31.44 kB / 410.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5539, allocations: 0 / 410.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of Templates: time 0.02982/0.5837, allocations: 19.75 MB / 430.6 MB, free: 10.29 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: