Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.162/1.162, allocations: 205.1 MB / 223.7 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009418/0.0009418, allocations: 96.8 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008125/0.0008126, allocations: 39.94 kB / 327.2 MB, free: 320 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.1847, allocations: 46.62 MB / 373.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.004211/0.1889, allocations: 4.729 MB / 378.5 MB, free: 42.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.1904, allocations: 1.284 MB / 379.8 MB, free: 41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.1906, allocations: 9.688 kB / 379.8 MB, free: 41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.1908, allocations: 83.86 kB / 379.9 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003102/0.1912, allocations: 209.6 kB / 380.1 MB, free: 40.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004067/0.1916, allocations: 248.9 kB / 380.4 MB, free: 40.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006391/0.1922, allocations: 1.011 MB / 381.4 MB, free: 39.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002701/0.1925, allocations: 213.4 kB / 381.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/0.1928, allocations: 373.6 kB / 382 MB, free: 39.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003389/0.1931, allocations: 436.4 kB / 382.4 MB, free: 39.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.492e-05/0.1932, allocations: 55.28 kB / 382.4 MB, free: 39.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001678/0.1934, allocations: 74.67 kB / 382.5 MB, free: 39.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.752e-05/0.1935, allocations: 152.5 kB / 382.7 MB, free: 39.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002702/0.1938, allocations: 389.4 kB / 383 MB, free: 38.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005645/0.1944, allocations: 0.9318 MB / 384 MB, free: 38.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1944, allocations: 5 kB / 384 MB, free: 38.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1944, allocations: 0 / 384 MB, free: 38.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.1944, allocations: 0 / 384 MB, free: 38.2 MB / 298.7 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.001957/0.1964, allocations: 1.211 MB / 385.2 MB, free: 37.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.1964, allocations: 9.438 kB / 385.2 MB, free: 37.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.1965, allocations: 92.06 kB / 385.3 MB, free: 37.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.197, allocations: 468.1 kB / 385.7 MB, free: 36.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.197, allocations: 46.81 kB / 385.8 MB, free: 36.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.56e-05/0.1971, allocations: 61.16 kB / 385.8 MB, free: 36.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.1982, allocations: 0.6414 MB / 386.5 MB, free: 36.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.1983, allocations: 0 / 386.5 MB, free: 36.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-05/0.1983, allocations: 29.69 kB / 386.5 MB, free: 36.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.1984, allocations: 14.31 kB / 386.5 MB, free: 36.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.1998, allocations: 0.6737 MB / 387.2 MB, free: 35.96 MB / 298.7 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.002692/0.2025, allocations: 2.324 MB / 389.5 MB, free: 33.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.2038, allocations: 0.5904 MB / 390.1 MB, free: 32.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006217/0.2044, allocations: 326.6 kB / 390.4 MB, free: 32.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.49e-05/0.2045, allocations: 12.42 kB / 390.4 MB, free: 32.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007567/0.2052, allocations: 431.7 kB / 390.9 MB, free: 32.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.693e-06/0.2052, allocations: 4 kB / 390.9 MB, free: 32.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.05851/0.2638, allocations: 15.41 MB / 406.3 MB, free: 16.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.2638, allocations: 137.5 kB / 406.4 MB, free: 16.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004205/0.2643, allocations: 0.491 MB / 406.9 MB, free: 15.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.2644, allocations: 41.7 kB / 407 MB, free: 15.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.2645, allocations: 356.1 kB / 407.3 MB, free: 15.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.2647, allocations: 323.3 kB / 407.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003017/0.265, allocations: 182.5 kB / 407.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.69e-05/0.2651, allocations: 382.8 kB / 408.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001674/0.2668, allocations: 0.7202 MB / 408.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/0.2685, allocations: 0.9273 MB / 409.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003259/0.2718, allocations: 1.654 MB / 411.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2718, allocations: 8 kB / 411.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.01955/0.2914, allocations: 5.347 MB / 416.8 MB, free: 5.797 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.603e-05/0.2914, allocations: 65.42 kB / 416.9 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.2915, allocations: 12.12 kB / 416.9 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02885/0.3203, allocations: 6.844 MB / 423.7 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006394/0.321, allocations: 143.7 kB / 423.9 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006193/0.3272, allocations: 3.161 MB / 427 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.3288, allocations: 175.8 kB / 427.2 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.3289, allocations: 47.97 kB / 427.3 MB, free: 11.28 MB / 314.7 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.0003621/0.3293, allocations: 217.7 kB / 427.5 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.3295, allocations: 79.06 kB / 427.6 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02038/0.3498, allocations: 5.106 MB / 432.7 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.3499, allocations: 8 kB / 432.7 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3499, allocations: 4 kB / 432.7 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.3499, allocations: 3.984 kB / 432.7 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.3511, allocations: 1.084 MB / 433.8 MB, free: 4.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.3511, allocations: 7.875 kB / 433.8 MB, free: 4.684 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004878/0.3516, allocations: 95.88 kB / 433.9 MB, free: 4.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03065/0.3823, allocations: 6.805 MB / 440.7 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.3824, allocations: 23.98 kB / 440.7 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005398/0.3878, allocations: 3.064 MB / 443.7 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3878, allocations: 0 / 443.7 MB, free: 10.62 MB / 330.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07868/0.4665, allocations: 22.05 MB / 465.8 MB, free: 4.355 MB / 346.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.