Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.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.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001681/0.001681, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002001/0.002001, allocations: 208.6 kB / 18.74 MB, free: 4.328 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.539/1.539, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.002012/0.002012, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2842, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01569/0.2999, allocations: 14.03 MB / 423.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02882/0.3288, allocations: 20.3 MB / 443.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003271/0.3321, allocations: 118.9 kB / 443.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004155/0.3364, allocations: 1.111 MB / 444.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01089/0.3473, allocations: 2.274 MB / 446.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005915/0.3532, allocations: 1.428 MB / 448.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01151/0.3648, allocations: 6.422 MB / 454.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009014/0.3657, allocations: 432.3 kB / 455.2 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001917/0.3677, allocations: 1.042 MB / 456.2 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.3693, allocations: 1.052 MB / 457.3 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002115/0.3695, allocations: 76 kB / 457.3 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004854/0.3744, allocations: 1.475 MB / 458.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000439/0.3749, allocations: 305.8 kB / 459.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001736/0.3766, allocations: 1.304 MB / 460.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006674/0.3833, allocations: 3.651 MB / 464.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/0.3834, allocations: 4 kB / 464.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3834, allocations: 0 / 464.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000108/0.3835, allocations: 0 / 464.1 MB, free: 10.1 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.00629/0.3898, allocations: 3.626 MB / 467.7 MB, free: 6.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.3898, allocations: 12.03 kB / 467.7 MB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001265/0.39, allocations: 94.52 kB / 467.8 MB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004971/0.3905, allocations: 393.5 kB / 468.2 MB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004054/0.3945, allocations: 2.535 MB / 470.7 MB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.949e-05/0.3946, allocations: 29 kB / 470.7 MB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3947, allocations: 48 kB / 470.8 MB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.3962, allocations: 0.6992 MB / 471.5 MB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.3963, allocations: 0 / 471.5 MB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.98e-05/0.3963, allocations: 20 kB / 471.5 MB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.3964, allocations: 19.98 kB / 471.5 MB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.398, allocations: 0.7929 MB / 472.3 MB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005522/0.4035, allocations: 2.892 MB / 475.2 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.4049, allocations: 0.6976 MB / 475.9 MB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.4061, allocations: 0.6508 MB / 476.6 MB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03635/0.4425, allocations: 30.72 MB / 0.4954 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008141/0.4433, allocations: 373.5 kB / 0.4957 GB, free: 9.984 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/0.4433, allocations: 3.938 kB / 0.4957 GB, free: 9.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003566/0.4469, allocations: 1.409 MB / 0.4971 GB, free: 8.543 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.447, allocations: 55.41 kB / 0.4972 GB, free: 8.477 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003993/0.451, allocations: 2.799 MB / 0.4999 GB, free: 5.656 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.475e-05/0.4511, allocations: 37.69 kB / 0.4999 GB, free: 5.613 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001485/0.4526, allocations: 1.392 MB / 0.5013 GB, free: 4.215 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.4528, allocations: 174.6 kB / 0.5015 GB, free: 4.043 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003317/0.4531, allocations: 222.4 kB / 0.5017 GB, free: 3.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.4533, allocations: 341.9 kB / 0.502 GB, free: 3.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007379/0.454, allocations: 237.9 kB / 0.5022 GB, free: 3.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009135/0.455, allocations: 0.5968 MB / 0.5028 GB, free: 2.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.4567, allocations: 0.8763 MB / 0.5037 GB, free: 1.434 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.4567, allocations: 4 kB / 0.5037 GB, free: 1.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002699/0.4594, allocations: 1.297 MB / 0.5049 GB, free: 124 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.4594, allocations: 8 kB / 0.505 GB, free: 116 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.4596, allocations: 80 kB / 0.505 GB, free: 36 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006307/0.4602, allocations: 280.8 kB / 0.5053 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005635/0.4608, allocations: 167.7 kB / 0.5055 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.462, allocations: 0.8872 MB / 0.5063 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.4631, allocations: 115.3 kB / 0.5064 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.4632, allocations: 64 kB / 0.5065 GB, free: 14.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0009471/0.4642, allocations: 429.3 kB / 0.5069 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004968/0.4647, allocations: 381.6 kB / 0.5073 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003085/0.4678, allocations: 1.267 MB / 0.5085 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.4678, allocations: 8 kB / 0.5085 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.4678, allocations: 3.984 kB / 0.5085 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.4678, allocations: 3.938 kB / 0.5085 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004163/0.472, allocations: 2.197 MB / 0.5107 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001206/0.4722, allocations: 75.98 kB / 0.5107 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003072/0.4725, allocations: 56.08 kB / 0.5108 GB, free: 9.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005364/0.473, allocations: 260.8 kB / 0.511 GB, free: 9.734 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.07e-05/0.4731, allocations: 31.94 kB / 0.5111 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.4742, allocations: 0.8686 MB / 0.5119 GB, free: 8.809 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4742, allocations: 0 / 0.5119 GB, free: 8.809 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002256/0.4765, allocations: 1.15 MB / 0.513 GB, free: 7.621 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009128/0.4774, allocations: 486.4 kB / 0.5135 GB, free: 7.125 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002779/0.4777, allocations: 12 kB / 0.5135 GB, free: 7.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006189/0.4783, allocations: 31.95 kB / 0.5135 GB, free: 7.082 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.4785, allocations: 59.89 kB / 0.5136 GB, free: 7.023 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.461e-05/0.4786, allocations: 36 kB / 0.5136 GB, free: 6.988 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002758/0.4814, allocations: 1.828 MB / 0.5154 GB, free: 5.156 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4814, allocations: 0 / 0.5154 GB, free: 5.156 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001414/0.4828, allocations: 0.5735 MB / 0.516 GB, free: 4.582 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003701/0.4865, allocations: 2.378 MB / 0.5183 GB, free: 2.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002014/0.4885, allocations: 0.8503 MB / 0.5191 GB, free: 1.293 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4885, allocations: 0 / 0.5191 GB, free: 1.293 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009491/0.4895, allocations: 492.1 kB / 0.5196 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002759/0.4923, allocations: 0.6069 MB / 0.5202 GB, free: 180 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2502/0.7425, allocations: 16.05 MB / 0.5359 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.7443, allocations: 1.601 MB / 0.5374 GB, free: 129.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001272/0.7456, allocations: 389.5 kB / 0.5378 GB, free: 129.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/0.7467, allocations: 1.125 MB / 0.5389 GB, free: 128.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7467, allocations: 3.938 kB / 0.5389 GB, free: 128.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.102/0.8488, allocations: 62.37 MB / 0.5998 GB, free: 73.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.71/21.56, allocations: 7.984 kB / 0.5998 GB, free: 73.4 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand_res.csv --start-time 0 --stop-time 2e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-11 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)