Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_trunk_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.001261/0.001261, allocations: 118.2 kB / 17.78 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.001412/0.001412, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2745, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009444/0.284, allocations: 8.33 MB / 417.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01541/0.2995, allocations: 11.33 MB / 428.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001639/0.3012, allocations: 55.56 kB / 428.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002455/0.3037, allocations: 0.8511 MB / 429.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004627/0.3083, allocations: 1.235 MB / 430.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002453/0.3108, allocations: 0.7089 MB / 431.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005005/0.3159, allocations: 2.716 MB / 434 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000733/0.3166, allocations: 357.7 kB / 434.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009035/0.3176, allocations: 0.5637 MB / 434.9 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009143/0.3185, allocations: 0.6211 MB / 435.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002958/0.3188, allocations: 68 kB / 435.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002404/0.3212, allocations: 0.7961 MB / 436.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000297/0.3215, allocations: 214.7 kB / 436.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001036/0.3226, allocations: 0.7724 MB / 437.4 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003122/0.3257, allocations: 2.139 MB / 439.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3257, allocations: 0 / 439.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.3258, allocations: 0 / 439.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.605e-05/0.3258, allocations: 0 / 439.5 MB, free: 2.629 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.003387/0.3292, allocations: 2.288 MB / 441.8 MB, free: 280 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.3293, allocations: 12.03 kB / 441.8 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.3294, allocations: 102.7 kB / 441.9 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000478/0.3299, allocations: 243.6 kB / 442.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001942/0.3318, allocations: 1.318 MB / 443.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.3319, allocations: 45.25 kB / 443.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.332, allocations: 55.98 kB / 443.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.3333, allocations: 0.6939 MB / 444.3 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.3333, allocations: 0 / 444.3 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.545e-05/0.3334, allocations: 20 kB / 444.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.29e-05/0.3334, allocations: 20 kB / 444.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.3347, allocations: 0.5711 MB / 444.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003703/0.3384, allocations: 2.511 MB / 447.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.3396, allocations: 0.6232 MB / 448 MB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008586/0.3404, allocations: 0.5415 MB / 448.5 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006969/0.3474, allocations: 5.903 MB / 454.4 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008209/0.3483, allocations: 395.3 kB / 454.8 MB, free: 2.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.825e-06/0.3483, allocations: 0 / 454.8 MB, free: 2.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.006915/0.3552, allocations: 2.438 MB / 457.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/0.3553, allocations: 85.67 kB / 457.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001915/0.3573, allocations: 1.422 MB / 458.8 MB, free: 14.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.3574, allocations: 37.7 kB / 458.8 MB, free: 14.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006346/0.358, allocations: 0.7947 MB / 459.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.3583, allocations: 261.8 kB / 459.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002144/0.3585, allocations: 142.6 kB / 460 MB, free: 12.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.3586, allocations: 341.9 kB / 460.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006013/0.3593, allocations: 261.8 kB / 460.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006688/0.3599, allocations: 442.1 kB / 461 MB, free: 11.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003155/0.3631, allocations: 1.548 MB / 462.6 MB, free: 10.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.3631, allocations: 3.984 kB / 462.6 MB, free: 10.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002213/0.3654, allocations: 1.161 MB / 463.7 MB, free: 9.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.3654, allocations: 12.12 kB / 463.7 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/0.3655, allocations: 83.98 kB / 463.8 MB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/0.3666, allocations: 0.603 MB / 464.4 MB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005962/0.3672, allocations: 139.8 kB / 464.6 MB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.3687, allocations: 1.526 MB / 466.1 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007906/0.3696, allocations: 91.42 kB / 466.2 MB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.379e-05/0.3697, allocations: 36.12 kB / 466.2 MB, free: 6.469 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.0006139/0.3703, allocations: 301.5 kB / 466.5 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002497/0.3705, allocations: 206.7 kB / 466.7 MB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002278/0.3728, allocations: 1.165 MB / 467.9 MB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.679e-06/0.3729, allocations: 11.94 kB / 467.9 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3729, allocations: 0 / 467.9 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3729, allocations: 7.922 kB / 467.9 MB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.374, allocations: 0.9949 MB / 468.9 MB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001026/0.3741, allocations: 83.98 kB / 469 MB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003792/0.3745, allocations: 59.94 kB / 469 MB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001094/0.3756, allocations: 0.6553 MB / 469.7 MB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6e-05/0.3757, allocations: 27.98 kB / 469.7 MB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.377, allocations: 1.138 MB / 470.9 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.377, allocations: 0 / 470.9 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.3796, allocations: 1.445 MB / 472.3 MB, free: 260 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004104/0.38, allocations: 295.7 kB / 472.6 MB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.3802, allocations: 15.94 kB / 472.6 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004684/0.3807, allocations: 35.95 kB / 472.6 MB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3808, allocations: 56.44 kB / 472.7 MB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.408e-05/0.3809, allocations: 27.98 kB / 472.7 MB, free: 15.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001246/0.3821, allocations: 0.9406 MB / 473.7 MB, free: 14.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3821, allocations: 0 / 473.7 MB, free: 14.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001019/0.3832, allocations: 442.9 kB / 474.1 MB, free: 14.41 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.003724/0.3869, allocations: 2.38 MB / 476.5 MB, free: 12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.389, allocations: 0.8736 MB / 477.4 MB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.389, allocations: 4 kB / 477.4 MB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.3902, allocations: 0.5433 MB / 477.9 MB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.3915, allocations: 226.3 kB / 478.1 MB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01854/0.41, allocations: 10.77 MB / 488.9 MB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.4111, allocations: 1.22 MB / 490.1 MB, free: 14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000609/0.4117, allocations: 166.1 kB / 490.3 MB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008112/0.4126, allocations: 0.6516 MB / 490.9 MB, free: 13.18 MB / 414.1 MB Notification: Performance of SimCode: time 1.272e-06/0.4126, allocations: 0 / 490.9 MB, free: 13.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07196/0.4845, allocations: 33.08 MB / 0.5117 GB, free: 12.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.99/15.48, allocations: 14.56 kB / 0.5117 GB, free: 12.28 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1)