Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_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.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingPNP_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.001526/0.001526, allocations: 118.2 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.001395/0.001395, allocations: 206 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.449/1.449, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001887/0.001887, allocations: 63.89 kB / 358.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2737, allocations: 50.54 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006065/0.2798, allocations: 4.957 MB / 414.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002642/0.2825, allocations: 1.283 MB / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003269/0.2828, allocations: 11.94 kB / 415.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003221/0.2832, allocations: 130.7 kB / 415.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004804/0.2837, allocations: 245.7 kB / 415.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007043/0.2844, allocations: 315.4 kB / 416 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001157/0.2856, allocations: 1.095 MB / 417.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003841/0.286, allocations: 266.5 kB / 417.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004624/0.2864, allocations: 406.6 kB / 417.8 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005495/0.287, allocations: 474 kB / 418.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.2871, allocations: 88 kB / 418.3 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.2873, allocations: 112 kB / 418.4 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.2875, allocations: 199.3 kB / 418.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004397/0.288, allocations: 449.8 kB / 419.1 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00112/0.2891, allocations: 1.007 MB / 420.1 MB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2891, allocations: 0 / 420.1 MB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.2891, allocations: 0 / 420.1 MB, free: 6.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.2891, allocations: 3.938 kB / 420.1 MB, free: 6.328 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.002528/0.2917, allocations: 1.281 MB / 421.4 MB, free: 4.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2917, allocations: 8.031 kB / 421.4 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.2919, allocations: 102.7 kB / 421.5 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.292, allocations: 108.3 kB / 421.6 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007146/0.2927, allocations: 491.9 kB / 422.1 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.58e-05/0.2928, allocations: 45.69 kB / 422.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.2929, allocations: 68.33 kB / 422.2 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.2944, allocations: 0.6585 MB / 422.8 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.2944, allocations: 7.922 kB / 422.8 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.711e-05/0.2945, allocations: 28 kB / 422.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.2945, allocations: 16 kB / 422.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00174/0.2962, allocations: 0.696 MB / 423.6 MB, free: 2.711 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.003991/0.3002, allocations: 2.371 MB / 425.9 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.3018, allocations: 0.5865 MB / 426.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007698/0.3026, allocations: 330 kB / 426.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.333e-05/0.3027, allocations: 8.438 kB / 426.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009859/0.3037, allocations: 425.4 kB / 427.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.425e-06/0.3037, allocations: 0 / 427.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07014/0.3738, allocations: 15.43 MB / 442.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.374, allocations: 141.5 kB / 442.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007053/0.3747, allocations: 0.5263 MB / 443.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001754/0.3749, allocations: 45.7 kB / 443.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003243/0.3752, allocations: 396.7 kB / 443.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000313/0.3755, allocations: 325.2 kB / 444.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003803/0.3759, allocations: 190.6 kB / 444.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.3761, allocations: 390.7 kB / 444.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002106/0.3782, allocations: 0.7205 MB / 445.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00223/0.3805, allocations: 0.959 MB / 446.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004268/0.3847, allocations: 1.693 MB / 448.1 MB, free: 9.684 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.3848, allocations: 4 kB / 448.1 MB, free: 9.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02338/0.4082, allocations: 5.378 MB / 453.4 MB, free: 4.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.55e-05/0.4083, allocations: 67.39 kB / 453.5 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.4083, allocations: 4 kB / 453.5 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03419/0.4425, allocations: 6.829 MB / 460.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000751/0.4433, allocations: 147.7 kB / 460.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006324/0.4496, allocations: 3.021 MB / 463.5 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.4513, allocations: 171.9 kB / 463.7 MB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001499/0.4515, allocations: 51.91 kB / 463.7 MB, free: 9.906 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.0004364/0.4519, allocations: 233.7 kB / 463.9 MB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.4521, allocations: 83.48 kB / 464 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02271/0.4749, allocations: 5.107 MB / 469.1 MB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.4749, allocations: 8 kB / 469.1 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.453e-06/0.4749, allocations: 0 / 469.1 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-05/0.4749, allocations: 7.969 kB / 469.2 MB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.4765, allocations: 1.108 MB / 470.3 MB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.4766, allocations: 4 kB / 470.3 MB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005634/0.4771, allocations: 96.12 kB / 470.4 MB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03411/0.5113, allocations: 6.785 MB / 477.1 MB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000263/0.5116, allocations: 27.98 kB / 477.2 MB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006382/0.518, allocations: 3.029 MB / 480.2 MB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/0.518, allocations: 7.922 kB / 480.2 MB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02496/0.543, allocations: 5.987 MB / 486.2 MB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/0.5433, allocations: 152.5 kB / 486.3 MB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002781/0.5435, allocations: 20.06 kB / 486.4 MB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.545, allocations: 171.8 kB / 486.5 MB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003447/0.5454, allocations: 92.88 kB / 486.6 MB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.5455, allocations: 31.97 kB / 486.7 MB, free: 2.773 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004427/0.546, allocations: 354.8 kB / 487 MB, free: 2.426 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.546, allocations: 7.938 kB / 487 MB, free: 2.418 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007924/0.5468, allocations: 256 kB / 487.3 MB, free: 2.168 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.02537/0.5721, allocations: 6.574 MB / 493.8 MB, free: 11.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006592/0.5788, allocations: 2.051 MB / 495.9 MB, free: 9.477 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.5788, allocations: 0 / 495.9 MB, free: 9.477 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003833/0.5827, allocations: 1.078 MB / 497 MB, free: 8.398 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008864/0.5836, allocations: 133.5 kB / 497.1 MB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05741/0.641, allocations: 15.99 MB / 0.5011 GB, free: 7.953 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006743/0.6417, allocations: 0.9507 MB / 0.502 GB, free: 6.977 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003497/0.6421, allocations: 58.27 kB / 0.502 GB, free: 6.918 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004256/0.6425, allocations: 279.3 kB / 0.5023 GB, free: 6.645 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6426, allocations: 0 / 0.5023 GB, free: 6.645 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06903/0.7116, allocations: 29.84 MB / 0.5314 GB, free: 9.059 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/14.46, allocations: 4.297 kB / 0.5314 GB, free: 9.055 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_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_HeatingPNP_NORGate.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)