Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.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.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001605/0.001611, allocations: 118.7 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001578/0.001578, allocations: 198 kB / 18.73 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.501/1.501, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.002116/0.002116, allocations: 59.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3323, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009729/0.3421, allocations: 8.323 MB / 417.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01572/0.3579, allocations: 11.33 MB / 428.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001874/0.3598, allocations: 59.5 kB / 428.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002822/0.3627, allocations: 0.8434 MB / 429.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005507/0.3682, allocations: 1.227 MB / 430.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002575/0.3708, allocations: 0.709 MB / 431.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00571/0.3765, allocations: 2.724 MB / 434.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007389/0.3773, allocations: 357.7 kB / 434.6 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000958/0.3783, allocations: 0.552 MB / 435.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007702/0.3791, allocations: 0.6172 MB / 435.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.3792, allocations: 68 kB / 435.9 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00231/0.3815, allocations: 0.7923 MB / 436.7 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002524/0.3818, allocations: 222.6 kB / 436.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000894/0.3827, allocations: 0.7647 MB / 437.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003278/0.386, allocations: 2.143 MB / 439.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.386, allocations: 4 kB / 439.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.386, allocations: 0 / 439.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.01e-05/0.3861, allocations: 0 / 439.8 MB, free: 2.496 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.003826/0.3899, allocations: 2.284 MB / 442.1 MB, free: 148 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.39, allocations: 8.031 kB / 442.1 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001555/0.3902, allocations: 106.7 kB / 442.2 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004728/0.3906, allocations: 245.8 kB / 442.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002026/0.3927, allocations: 1.32 MB / 443.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.577e-05/0.3927, allocations: 41.25 kB / 443.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.844e-05/0.3928, allocations: 52 kB / 443.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.3942, allocations: 0.6939 MB / 444.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.3942, allocations: 0 / 444.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.152e-05/0.3943, allocations: 31.88 kB / 444.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.843e-05/0.3943, allocations: 15.98 kB / 444.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.3957, allocations: 0.5712 MB / 445.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004002/0.3997, allocations: 2.515 MB / 447.7 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.401, allocations: 0.6193 MB / 448.3 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009576/0.402, allocations: 0.5376 MB / 448.8 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007943/0.4099, allocations: 5.899 MB / 454.7 MB, free: 2.449 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008894/0.4109, allocations: 399.4 kB / 455.1 MB, free: 2.051 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.595e-06/0.4109, allocations: 0 / 455.1 MB, free: 2.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.007133/0.418, allocations: 2.434 MB / 457.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.4181, allocations: 93.64 kB / 457.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002004/0.4201, allocations: 1.423 MB / 459.1 MB, free: 14.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.036e-05/0.4202, allocations: 37.7 kB / 459.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008179/0.421, allocations: 0.7908 MB / 459.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002471/0.4213, allocations: 249.8 kB / 460.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002459/0.4216, allocations: 146.6 kB / 460.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.4217, allocations: 342 kB / 460.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006597/0.4224, allocations: 261.8 kB / 460.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008089/0.4232, allocations: 442.1 kB / 461.3 MB, free: 11.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003598/0.4268, allocations: 1.552 MB / 462.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.4268, allocations: 0 / 462.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002338/0.4292, allocations: 1.165 MB / 464 MB, free: 8.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.4292, allocations: 4 kB / 464 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00013/0.4294, allocations: 88.02 kB / 464.1 MB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.4304, allocations: 0.6043 MB / 464.7 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005762/0.431, allocations: 135.8 kB / 464.8 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001643/0.4327, allocations: 1.537 MB / 466.4 MB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006284/0.4333, allocations: 83.48 kB / 466.5 MB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.321e-05/0.4334, allocations: 40 kB / 466.5 MB, free: 6.348 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: Q2.vbc:VARIABLE(start = 0.0 unit = "V" fixed = true ) type: Real Q2.vbx:VARIABLE(unit = "V" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 14 (VCC.counter,$PRE.VCC.counter,VEE.counter,$PRE.VEE.counter,VEE.counter2,$PRE.VEE.counter2,VEE.T0,$PRE.VEE.T0,VCC.counter2,$PRE.VCC.counter2,VCC.T0,$PRE.VCC.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,12), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005669/0.434, allocations: 297.8 kB / 466.8 MB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002566/0.4342, allocations: 214.7 kB / 467 MB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002461/0.4367, allocations: 1.165 MB / 468.2 MB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.4367, allocations: 4 kB / 468.2 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.4367, allocations: 0 / 468.2 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.4368, allocations: 0 / 468.2 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.4381, allocations: 0.9988 MB / 469.2 MB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001052/0.4382, allocations: 75.94 kB / 469.2 MB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003809/0.4386, allocations: 71.92 kB / 469.3 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/0.4398, allocations: 0.6514 MB / 470 MB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.4398, allocations: 27.98 kB / 470 MB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.4412, allocations: 1.138 MB / 471.1 MB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.4412, allocations: 4 kB / 471.1 MB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002791/0.444, allocations: 1.445 MB / 472.6 MB, free: 140 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000421/0.4445, allocations: 291.7 kB / 472.9 MB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001576/0.4446, allocations: 12 kB / 472.9 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004387/0.4451, allocations: 39.95 kB / 472.9 MB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.4452, allocations: 52.44 kB / 473 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.819e-05/0.4453, allocations: 27.98 kB / 473 MB, free: 15.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001324/0.4466, allocations: 0.9367 MB / 473.9 MB, free: 14.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4466, allocations: 3.938 kB / 473.9 MB, free: 14.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001014/0.4476, allocations: 450.8 kB / 474.4 MB, free: 14.3 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Q1.vbe,Q1.vbc,Q1.vbx,Q2.vbe,Q2.vbc,Q2.vbx) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,VCC.T0,VCC.counter,VCC.counter2,VEE.T0,VEE.counter,VEE.counter2) * Number of discrete states: 4 (VEE.counter,VCC.counter,VEE.counter2,VCC.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 16 * 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 {(3,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004031/0.4517, allocations: 2.376 MB / 476.8 MB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002115/0.4538, allocations: 0.8814 MB / 477.6 MB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4538, allocations: 0 / 477.6 MB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001263/0.4551, allocations: 0.547 MB / 478.2 MB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.4561, allocations: 229.9 kB / 478.4 MB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01706/0.4732, allocations: 10.76 MB / 489.2 MB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009447/0.4742, allocations: 1.224 MB / 490.4 MB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005208/0.4747, allocations: 158.2 kB / 490.6 MB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000749/0.4755, allocations: 0.6516 MB / 491.2 MB, free: 13.06 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4755, allocations: 0 / 491.2 MB, free: 13.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07709/0.5526, allocations: 33.11 MB / 0.512 GB, free: 12.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.45/17, allocations: 10.59 kB / 0.512 GB, free: 12.25 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1)