Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001977/0.001977, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.422/1.422, allocations: 227.7 MB / 247.2 MB, free: 10.26 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 67.89 kB / 358.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2778, allocations: 50.55 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006234/0.284, allocations: 4.957 MB / 414.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002662/0.2868, allocations: 1.287 MB / 415.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004014/0.2872, allocations: 11.94 kB / 415.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003344/0.2876, allocations: 130.7 kB / 415.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005194/0.2881, allocations: 249.7 kB / 415.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007699/0.2889, allocations: 311.4 kB / 416 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.2901, allocations: 1.095 MB / 417.1 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004144/0.2905, allocations: 266.5 kB / 417.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005243/0.291, allocations: 422.5 kB / 417.8 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005528/0.2916, allocations: 462 kB / 418.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.2917, allocations: 88 kB / 418.3 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.292, allocations: 112 kB / 418.5 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001757/0.2922, allocations: 195.3 kB / 418.6 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004376/0.2926, allocations: 449.7 kB / 419.1 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.2937, allocations: 1.011 MB / 420.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2938, allocations: 0 / 420.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.2938, allocations: 4 kB / 420.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.2938, allocations: 3.938 kB / 420.1 MB, free: 6.297 MB / 334.1 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.002554/0.2963, allocations: 1.277 MB / 421.4 MB, free: 4.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.2964, allocations: 8.031 kB / 421.4 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.2965, allocations: 110.7 kB / 421.5 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.2967, allocations: 96.33 kB / 421.6 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008038/0.2975, allocations: 495.9 kB / 422.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.2976, allocations: 49.69 kB / 422.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.2977, allocations: 64.33 kB / 422.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.2992, allocations: 0.6546 MB / 422.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.2992, allocations: 3.984 kB / 422.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-05/0.2993, allocations: 31.98 kB / 422.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.2993, allocations: 16 kB / 422.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/0.3011, allocations: 0.6922 MB / 423.6 MB, free: 2.691 MB / 334.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.004108/0.3052, allocations: 2.367 MB / 425.9 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.3067, allocations: 0.5943 MB / 426.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007802/0.3075, allocations: 334 kB / 426.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.206e-05/0.3076, allocations: 8.375 kB / 426.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009926/0.3086, allocations: 429.4 kB / 427.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.464e-06/0.3086, allocations: 0 / 427.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06996/0.3786, allocations: 15.43 MB / 442.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.3787, allocations: 145.5 kB / 442.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006937/0.3794, allocations: 0.5225 MB / 443.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001658/0.3796, allocations: 41.7 kB / 443.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003134/0.3799, allocations: 396.7 kB / 443.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003099/0.3803, allocations: 333.2 kB / 444.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003828/0.3806, allocations: 186.6 kB / 444.3 MB, free: 13.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002111/0.3809, allocations: 386.7 kB / 444.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002142/0.383, allocations: 0.7205 MB / 445.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002339/0.3854, allocations: 0.959 MB / 446.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004384/0.3898, allocations: 1.693 MB / 448.1 MB, free: 9.656 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.3898, allocations: 0 / 448.1 MB, free: 9.656 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0236/0.4134, allocations: 5.386 MB / 453.5 MB, free: 4.238 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.83e-05/0.4135, allocations: 67.39 kB / 453.5 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.4136, allocations: 12.12 kB / 453.5 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03469/0.4483, allocations: 6.836 MB / 460.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007488/0.4491, allocations: 155.7 kB / 460.5 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007264/0.4563, allocations: 3.153 MB / 463.7 MB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.4581, allocations: 183.8 kB / 463.9 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.4583, allocations: 55.84 kB / 463.9 MB, free: 9.703 MB / 382.1 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.0004789/0.4587, allocations: 229.7 kB / 464.1 MB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.459, allocations: 83.48 kB / 464.2 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02256/0.4815, allocations: 5.115 MB / 469.3 MB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.773e-05/0.4816, allocations: 16 kB / 469.3 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.4816, allocations: 256 / 469.3 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.75e-05/0.4816, allocations: 7.969 kB / 469.4 MB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.4834, allocations: 1.108 MB / 470.5 MB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.4835, allocations: 0 / 470.5 MB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/0.484, allocations: 91.88 kB / 470.6 MB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03418/0.5182, allocations: 6.793 MB / 477.3 MB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002011/0.5184, allocations: 27.97 kB / 477.4 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005987/0.5244, allocations: 3.045 MB / 480.4 MB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5245, allocations: 0 / 480.4 MB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02499/0.5495, allocations: 5.991 MB / 486.4 MB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002459/0.5498, allocations: 152.5 kB / 486.6 MB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.5499, allocations: 16 kB / 486.6 MB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/0.5513, allocations: 171.8 kB / 486.7 MB, free: 2.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002658/0.5516, allocations: 92.88 kB / 486.8 MB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.084e-05/0.5517, allocations: 31.92 kB / 486.9 MB, free: 2.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004479/0.5522, allocations: 358.8 kB / 487.2 MB, free: 2.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5522, allocations: 4 kB / 487.2 MB, free: 2.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007532/0.5529, allocations: 260 kB / 487.5 MB, free: 1.938 MB / 398.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.02531/0.5782, allocations: 6.575 MB / 494 MB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007146/0.5854, allocations: 2.181 MB / 496.2 MB, free: 9.113 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.5855, allocations: 384 / 496.2 MB, free: 9.113 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003717/0.5892, allocations: 1.101 MB / 497.3 MB, free: 8.016 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007744/0.59, allocations: 126.4 kB / 497.5 MB, free: 7.891 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05574/0.6458, allocations: 15.96 MB / 0.5014 GB, free: 7.598 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005868/0.6464, allocations: 0.9507 MB / 0.5023 GB, free: 6.621 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003344/0.6467, allocations: 58.27 kB / 0.5024 GB, free: 6.562 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003614/0.6471, allocations: 271.3 kB / 0.5026 GB, free: 6.297 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6471, allocations: 4 kB / 0.5026 GB, free: 6.293 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06684/0.714, allocations: 29.59 MB / 0.5315 GB, free: 8.961 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.51, allocations: 15.33 kB / 0.5315 GB, free: 8.949 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1)