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.001138/0.001138, allocations: 103.1 kB / 16.5 MB, free: 6.207 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.001197/0.001197, allocations: 190.1 kB / 17.42 MB, free: 5.848 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.49/1.49, allocations: 205.1 MB / 223.3 MB, free: 12.46 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.001183/0.001183, allocations: 55.92 kB / 279.3 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.116, allocations: 46.63 MB / 325.9 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.00578/0.1218, allocations: 4.741 MB / 330.7 MB, free: 132 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002676/0.1245, allocations: 1.272 MB / 332 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002928/0.1248, allocations: 8 kB / 332 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003043/0.1252, allocations: 83.3 kB / 332.1 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004508/0.1256, allocations: 214.2 kB / 332.3 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006416/0.1263, allocations: 259.7 kB / 332.5 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008554/0.1272, allocations: 0.9898 MB / 333.5 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003593/0.1275, allocations: 223.3 kB / 333.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003984/0.1279, allocations: 366.5 kB / 334.1 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005121/0.1285, allocations: 430.1 kB / 334.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.1286, allocations: 52 kB / 334.6 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.1288, allocations: 75.98 kB / 334.6 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.1289, allocations: 159.3 kB / 334.8 MB, free: 12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003621/0.1293, allocations: 397.9 kB / 335.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008301/0.1301, allocations: 0.9267 MB / 336.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1302, allocations: 4 kB / 336.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1302, allocations: 0 / 336.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.1302, allocations: 0 / 336.1 MB, free: 10.68 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.002471/0.1327, allocations: 1.215 MB / 337.3 MB, free: 9.398 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.1327, allocations: 8.031 kB / 337.3 MB, free: 9.391 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.1329, allocations: 87.91 kB / 337.4 MB, free: 9.305 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006404/0.1336, allocations: 461.4 kB / 337.9 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/0.1336, allocations: 45.69 kB / 337.9 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.1337, allocations: 64.38 kB / 338 MB, free: 8.707 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.1352, allocations: 0.6353 MB / 338.6 MB, free: 8.062 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.501e-05/0.1352, allocations: 0 / 338.6 MB, free: 8.062 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.262e-05/0.1353, allocations: 27.98 kB / 338.6 MB, free: 8.035 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.1353, allocations: 16 kB / 338.6 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/0.137, allocations: 0.6765 MB / 339.3 MB, free: 7.344 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.004085/0.1411, allocations: 2.331 MB / 341.7 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.1426, allocations: 0.5866 MB / 342.2 MB, free: 4.262 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007083/0.1433, allocations: 330 kB / 342.6 MB, free: 3.938 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.13e-05/0.1434, allocations: 8.438 kB / 342.6 MB, free: 3.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.1444, allocations: 433.3 kB / 343 MB, free: 3.48 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 1.873e-06/0.1444, allocations: 0 / 343 MB, free: 3.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06811/0.2125, allocations: 15.4 MB / 358.4 MB, free: 3.984 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.2127, allocations: 141.5 kB / 358.5 MB, free: 3.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007509/0.2135, allocations: 0.4949 MB / 359 MB, free: 3.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002085/0.2137, allocations: 41.7 kB / 359.1 MB, free: 3.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.214, allocations: 371.9 kB / 359.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000293/0.2143, allocations: 307.5 kB / 359.7 MB, free: 2.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003585/0.2146, allocations: 178.5 kB / 359.9 MB, free: 2.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.2148, allocations: 382.8 kB / 360.3 MB, free: 2.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001959/0.2168, allocations: 0.7202 MB / 361 MB, free: 1.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.2189, allocations: 0.9265 MB / 361.9 MB, free: 308 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004121/0.2231, allocations: 1.662 MB / 363.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.2231, allocations: 4 kB / 363.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02362/0.2467, allocations: 5.35 MB / 368.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.562e-05/0.2468, allocations: 59.41 kB / 369 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.2469, allocations: 4 kB / 369 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03322/0.2801, allocations: 6.847 MB / 375.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006967/0.2808, allocations: 139.7 kB / 376 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2421/0.5229, allocations: 3.156 MB / 379.1 MB, free: 52.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.5248, allocations: 184.2 kB / 379.3 MB, free: 52.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.5249, allocations: 44.8 kB / 379.4 MB, free: 52.95 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.0004967/0.5255, allocations: 228.4 kB / 379.6 MB, free: 52.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.5257, allocations: 75.97 kB / 379.7 MB, free: 52.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02426/0.5499, allocations: 5.098 MB / 384.8 MB, free: 52.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.899e-05/0.55, allocations: 8.469 kB / 384.8 MB, free: 52.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.5501, allocations: 1.188 kB / 384.8 MB, free: 52.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.66e-05/0.5501, allocations: 3.938 kB / 384.8 MB, free: 52.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.5519, allocations: 1.088 MB / 385.9 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.5519, allocations: 0 / 385.9 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005597/0.5525, allocations: 91.72 kB / 386 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03362/0.5861, allocations: 6.816 MB / 392.8 MB, free: 50.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003063/0.5865, allocations: 27.78 kB / 392.8 MB, free: 50.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005418/0.5919, allocations: 3.043 MB / 395.8 MB, free: 48.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5919, allocations: 0 / 395.8 MB, free: 48.33 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02228/0.6142, allocations: 5.988 MB / 401.8 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000321/0.6146, allocations: 141.4 kB / 402 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.6148, allocations: 26.91 kB / 402 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.6161, allocations: 167.8 kB / 402.2 MB, free: 42.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002836/0.6164, allocations: 100.9 kB / 402.3 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.184e-05/0.6165, allocations: 31.97 kB / 402.3 MB, free: 42.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003704/0.6169, allocations: 334.9 kB / 402.6 MB, free: 42.22 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6169, allocations: 7.609 kB / 402.6 MB, free: 42.22 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007936/0.6177, allocations: 252 kB / 402.9 MB, free: 41.97 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.0002697/0.6179, allocations: 132.2 kB / 403 MB, free: 41.83 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006084/0.624, allocations: 2.161 MB / 405.2 MB, free: 39.65 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.6241, allocations: 4.062 kB / 405.2 MB, free: 39.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003046/0.6271, allocations: 1.081 MB / 406.2 MB, free: 38.57 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008589/0.628, allocations: 119.8 kB / 406.4 MB, free: 38.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.6317, allocations: 2.064 MB / 408.4 MB, free: 36.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.6321, allocations: 0.9386 MB / 409.4 MB, free: 35.44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003053/0.6324, allocations: 58.62 kB / 409.4 MB, free: 35.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.6325, allocations: 31.44 kB / 409.5 MB, free: 35.35 MB / 318.1 MB Notification: Performance of SimCode: time 1.262e-06/0.6325, allocations: 3.609 kB / 409.5 MB, free: 35.35 MB / 318.1 MB Notification: Performance of Templates: time 0.02467/0.6572, allocations: 20.63 MB / 430.1 MB, free: 14.72 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)