Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 112.5 kB / 15.73 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 196.5 kB / 16.66 MB, free: 6.574 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.528/1.528, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001456/0.001457, allocations: 50.83 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1386, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006108/0.1448, allocations: 4.696 MB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003119/0.148, allocations: 1.264 MB / 379.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000365/0.1484, allocations: 19.88 kB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003533/0.1487, allocations: 110.8 kB / 379.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005115/0.1493, allocations: 249.7 kB / 379.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000845/0.1501, allocations: 299.5 kB / 379.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001153/0.1513, allocations: 1.056 MB / 380.9 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004188/0.1517, allocations: 258.3 kB / 381.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004565/0.1522, allocations: 410.5 kB / 381.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005206/0.1527, allocations: 454.1 kB / 382 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.1529, allocations: 84 kB / 382 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.1531, allocations: 108 kB / 382.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001909/0.1533, allocations: 191.3 kB / 382.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004083/0.1537, allocations: 433.9 kB / 382.8 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009707/0.1547, allocations: 0.9772 MB / 383.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1547, allocations: 0 / 383.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1547, allocations: 0 / 383.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1547, allocations: 0 / 383.7 MB, free: 6.688 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.002529/0.1572, allocations: 1.215 MB / 384.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.1573, allocations: 8.031 kB / 385 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.1575, allocations: 87.91 kB / 385 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008005/0.1583, allocations: 465.4 kB / 385.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.566e-05/0.1584, allocations: 49.69 kB / 385.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.1585, allocations: 60.38 kB / 385.6 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.1598, allocations: 0.647 MB / 386.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.1599, allocations: 0 / 386.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.1599, allocations: 24 kB / 386.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.16, allocations: 16 kB / 386.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.1616, allocations: 0.6726 MB / 387 MB, free: 3.344 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.003784/0.1654, allocations: 2.32 MB / 389.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.1669, allocations: 0.5827 MB / 389.9 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007791/0.1677, allocations: 337.9 kB / 390.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.685e-05/0.1677, allocations: 8.438 kB / 390.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008998/0.1686, allocations: 433.3 kB / 390.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 1.954e-06/0.1687, allocations: 0 / 390.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06946/0.2381, allocations: 15.39 MB / 406 MB, free: 15.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/0.2384, allocations: 145.5 kB / 406.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008432/0.2392, allocations: 494.8 kB / 406.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002672/0.2395, allocations: 45.7 kB / 406.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003349/0.2398, allocations: 364 kB / 407 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003999/0.2403, allocations: 319.5 kB / 407.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004455/0.2407, allocations: 174.5 kB / 407.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002337/0.241, allocations: 382.8 kB / 407.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002175/0.2431, allocations: 0.7163 MB / 408.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002254/0.2454, allocations: 0.9303 MB / 409.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00435/0.2498, allocations: 1.662 MB / 411.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.2498, allocations: 0 / 411.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02328/0.2731, allocations: 5.342 MB / 416.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.2733, allocations: 63.39 kB / 416.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.2733, allocations: 16.06 kB / 416.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0339/0.3073, allocations: 6.821 MB / 423.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008329/0.3081, allocations: 139.7 kB / 423.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006823/0.315, allocations: 3.016 MB / 426.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002151/0.3172, allocations: 183.8 kB / 426.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002457/0.3175, allocations: 39.98 kB / 426.8 MB, free: 10.84 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.0006768/0.3182, allocations: 225.6 kB / 427 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002968/0.3185, allocations: 79.06 kB / 427.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02255/0.3411, allocations: 5.099 MB / 432.2 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.113e-05/0.3412, allocations: 12 kB / 432.2 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/0.3412, allocations: 0 / 432.2 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.178e-05/0.3412, allocations: 7.969 kB / 432.2 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.3433, allocations: 1.096 MB / 433.3 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.352e-05/0.3434, allocations: 3.938 kB / 433.3 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006165/0.344, allocations: 95.88 kB / 433.4 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03378/0.3778, allocations: 6.789 MB / 440.2 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004089/0.3783, allocations: 27.97 kB / 440.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006867/0.3852, allocations: 3.024 MB / 443.3 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.3852, allocations: 0 / 443.3 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02433/0.4095, allocations: 5.987 MB / 449.3 MB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003538/0.4099, allocations: 140.2 kB / 449.4 MB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003571/0.4103, allocations: 24 kB / 449.4 MB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/0.412, allocations: 167.8 kB / 449.6 MB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003832/0.4124, allocations: 100.9 kB / 449.7 MB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.4125, allocations: 27.98 kB / 449.7 MB, free: 3.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005796/0.4131, allocations: 334.9 kB / 450 MB, free: 3.426 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4131, allocations: 4 kB / 450 MB, free: 3.422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001241/0.4144, allocations: 256 kB / 450.3 MB, free: 3.172 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.0005126/0.4149, allocations: 135.2 kB / 450.4 MB, free: 3.031 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006593/0.4215, allocations: 2.04 MB / 452.5 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.4216, allocations: 0 / 452.5 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2644/0.6859, allocations: 1.081 MB / 453.5 MB, free: 77.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.6873, allocations: 132.3 kB / 453.7 MB, free: 77.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004931/0.6922, allocations: 1.743 MB / 455.4 MB, free: 76.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000656/0.6929, allocations: 0.9381 MB / 456.3 MB, free: 75.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003047/0.6932, allocations: 57.72 kB / 456.4 MB, free: 75.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.6933, allocations: 35.31 kB / 456.4 MB, free: 75.87 MB / 382.1 MB Notification: Performance of SimCode: time 1.352e-06/0.6933, allocations: 1.688 kB / 456.4 MB, free: 75.87 MB / 382.1 MB Notification: Performance of Templates: time 0.03462/0.728, allocations: 22.75 MB / 479.2 MB, free: 63.03 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)