Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 109.8 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009189/0.0009192, allocations: 43.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2858, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00473/0.2906, allocations: 4.944 MB / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00182/0.2925, allocations: 1.272 MB / 405.7 MB, free: 27.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00026/0.2928, allocations: 15.94 kB / 405.7 MB, free: 27.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002518/0.2931, allocations: 95.22 kB / 405.8 MB, free: 27.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003411/0.2934, allocations: 214.2 kB / 406 MB, free: 26.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004911/0.2939, allocations: 267.7 kB / 406.3 MB, free: 26.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006473/0.2946, allocations: 1.048 MB / 407.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002837/0.2949, allocations: 231.4 kB / 407.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002894/0.2952, allocations: 378.5 kB / 407.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003348/0.2955, allocations: 442 kB / 408.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.436e-05/0.2956, allocations: 56 kB / 408.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.2958, allocations: 75.98 kB / 408.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.819e-05/0.2959, allocations: 163.3 kB / 408.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002727/0.2961, allocations: 413.8 kB / 409 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005516/0.2967, allocations: 0.959 MB / 410 MB, free: 22.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2967, allocations: 0 / 410 MB, free: 22.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.2967, allocations: 0 / 410 MB, free: 22.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.425e-06/0.2967, allocations: 0 / 410 MB, free: 22.8 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002126/0.2989, allocations: 1.262 MB / 411.2 MB, free: 21.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.2989, allocations: 8.031 kB / 411.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.2991, allocations: 99.81 kB / 411.4 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.2995, allocations: 475.6 kB / 411.8 MB, free: 20.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.743e-05/0.2995, allocations: 45.69 kB / 411.9 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.523e-05/0.2996, allocations: 64.38 kB / 411.9 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.3008, allocations: 0.6509 MB / 412.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.3008, allocations: 11.84 kB / 412.6 MB, free: 20.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.912e-05/0.3009, allocations: 28 kB / 412.6 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.3009, allocations: 19.98 kB / 412.6 MB, free: 20.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.3023, allocations: 0.6922 MB / 413.3 MB, free: 19.34 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.003148/0.3055, allocations: 2.39 MB / 415.7 MB, free: 16.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.3068, allocations: 0.5827 MB / 416.3 MB, free: 16.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006191/0.3074, allocations: 330 kB / 416.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.942e-05/0.3075, allocations: 8.438 kB / 416.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000809/0.3083, allocations: 421.5 kB / 417 MB, free: 15.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.424e-06/0.3083, allocations: 0 / 417 MB, free: 15.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06113/0.3694, allocations: 15.42 MB / 432.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.3696, allocations: 145.5 kB / 432.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007293/0.3703, allocations: 0.5186 MB / 433.1 MB, free: 15.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001848/0.3705, allocations: 45.7 kB / 433.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003065/0.3708, allocations: 379.8 kB / 433.5 MB, free: 14.79 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002949/0.3711, allocations: 315.4 kB / 433.8 MB, free: 14.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003638/0.3715, allocations: 186.5 kB / 434 MB, free: 14.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3717, allocations: 386.7 kB / 434.4 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/0.3737, allocations: 0.7166 MB / 435.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/0.3758, allocations: 0.9629 MB / 436.1 MB, free: 12.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00413/0.38, allocations: 1.697 MB / 437.8 MB, free: 10.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.38, allocations: 0 / 437.8 MB, free: 10.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02294/0.403, allocations: 5.37 MB / 443.1 MB, free: 4.938 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.117e-05/0.4031, allocations: 63.39 kB / 443.2 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.4031, allocations: 8 kB / 443.2 MB, free: 4.855 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03343/0.4365, allocations: 6.833 MB / 450 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007339/0.4373, allocations: 159.7 kB / 450.2 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006113/0.4434, allocations: 3.016 MB / 453.2 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.4452, allocations: 183.8 kB / 453.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.4453, allocations: 43.98 kB / 453.4 MB, free: 10.56 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (54): * Single equations (assignments): 50 * 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.0004464/0.4458, allocations: 233.6 kB / 453.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.4459, allocations: 79.06 kB / 453.7 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02258/0.4685, allocations: 5.088 MB / 458.8 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.55e-05/0.4686, allocations: 12 kB / 458.8 MB, free: 5.121 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.4686, allocations: 0 / 458.8 MB, free: 5.121 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-05/0.4686, allocations: 7.969 kB / 458.9 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00168/0.4703, allocations: 1.12 MB / 460 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.4703, allocations: 0 / 460 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005713/0.4709, allocations: 91.83 kB / 460.1 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03457/0.5055, allocations: 6.805 MB / 466.9 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001874/0.5057, allocations: 23.98 kB / 466.9 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005805/0.5115, allocations: 3.025 MB / 469.9 MB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5116, allocations: 256 / 469.9 MB, free: 9.926 MB / 346.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.08582/0.5974, allocations: 22.05 MB / 492 MB, free: 3.652 MB / 362.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.