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.001578/0.001578, allocations: 117.6 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.00184/0.00184, allocations: 200.7 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.446/1.446, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.241, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.007902/0.2489, allocations: 8.331 MB / 417.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.2612, allocations: 11.34 MB / 428.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001288/0.2625, allocations: 55.56 kB / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002071/0.2646, allocations: 0.8433 MB / 429.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003549/0.2682, allocations: 1.239 MB / 430.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001944/0.2701, allocations: 0.7051 MB / 431.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004113/0.2743, allocations: 2.716 MB / 434 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005743/0.2749, allocations: 357.7 kB / 434.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008082/0.2757, allocations: 0.5559 MB / 434.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006752/0.2764, allocations: 0.6289 MB / 435.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.2765, allocations: 68 kB / 435.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001813/0.2783, allocations: 0.7883 MB / 436.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.2786, allocations: 218.7 kB / 436.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007468/0.2793, allocations: 0.7647 MB / 437.4 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002599/0.2819, allocations: 2.15 MB / 439.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.282, allocations: 0 / 439.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.282, allocations: 0 / 439.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.373e-05/0.282, allocations: 4 kB / 439.5 MB, free: 2.625 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.003444/0.2854, allocations: 2.28 MB / 441.8 MB, free: 284 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.2855, allocations: 8.031 kB / 441.8 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.2856, allocations: 102.7 kB / 441.9 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005119/0.2862, allocations: 241.6 kB / 442.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.2883, allocations: 1.324 MB / 443.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.828e-05/0.2884, allocations: 41.25 kB / 443.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.2885, allocations: 56 kB / 443.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.2898, allocations: 0.69 MB / 444.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.2898, allocations: 0 / 444.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.22e-05/0.2899, allocations: 31.92 kB / 444.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.2899, allocations: 19.98 kB / 444.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.2912, allocations: 0.5672 MB / 444.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003583/0.2948, allocations: 2.515 MB / 447.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.296, allocations: 0.6193 MB / 448 MB, free: 9.832 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008492/0.2968, allocations: 0.5454 MB / 448.5 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006662/0.3035, allocations: 5.895 MB / 454.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007924/0.3043, allocations: 411.2 kB / 454.8 MB, free: 2.172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.354e-06/0.3043, allocations: 0 / 454.8 MB, free: 2.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.006436/0.3108, allocations: 2.43 MB / 457.3 MB, free: 15.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.3109, allocations: 89.67 kB / 457.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/0.3124, allocations: 1.426 MB / 458.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.574e-05/0.3125, allocations: 37.7 kB / 458.8 MB, free: 14.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005994/0.3131, allocations: 0.7907 MB / 459.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.3133, allocations: 261.8 kB / 459.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002848/0.3136, allocations: 146.6 kB / 460 MB, free: 12.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3138, allocations: 333.9 kB / 460.3 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006749/0.3145, allocations: 265.8 kB / 460.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006827/0.3151, allocations: 434.1 kB / 461 MB, free: 11.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003118/0.3183, allocations: 1.56 MB / 462.6 MB, free: 10.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.3183, allocations: 4 kB / 462.6 MB, free: 10.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002042/0.3203, allocations: 1.157 MB / 463.7 MB, free: 9.012 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.3204, allocations: 15.92 kB / 463.8 MB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/0.3205, allocations: 76 kB / 463.8 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000913/0.3214, allocations: 0.6104 MB / 464.4 MB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005579/0.322, allocations: 131.8 kB / 464.6 MB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001293/0.3233, allocations: 1.534 MB / 466.1 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006295/0.3239, allocations: 87.48 kB / 466.2 MB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.209e-05/0.324, allocations: 32 kB / 466.2 MB, free: 6.477 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.000485/0.3245, allocations: 305.6 kB / 466.5 MB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/0.3247, allocations: 214.7 kB / 466.7 MB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.3269, allocations: 1.161 MB / 467.9 MB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.3269, allocations: 4 kB / 467.9 MB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3269, allocations: 4 kB / 467.9 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.3269, allocations: 3.984 kB / 467.9 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.3279, allocations: 0.9949 MB / 468.9 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001002/0.3281, allocations: 80 kB / 469 MB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/0.3284, allocations: 63.94 kB / 469 MB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001002/0.3295, allocations: 0.6669 MB / 469.7 MB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.02e-05/0.3295, allocations: 23.98 kB / 469.7 MB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.3307, allocations: 1.134 MB / 470.9 MB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3307, allocations: 0 / 470.9 MB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.3332, allocations: 1.453 MB / 472.3 MB, free: 256 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004205/0.3336, allocations: 295.9 kB / 472.6 MB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001564/0.3338, allocations: 12 kB / 472.6 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004731/0.3343, allocations: 31.97 kB / 472.6 MB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.3344, allocations: 52.48 kB / 472.7 MB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.825e-05/0.3345, allocations: 24 kB / 472.7 MB, free: 15.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00107/0.3356, allocations: 0.9483 MB / 473.7 MB, free: 14.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3356, allocations: 3.938 kB / 473.7 MB, free: 14.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008697/0.3364, 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.00346/0.3399, allocations: 2.372 MB / 476.5 MB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.3419, allocations: 0.8772 MB / 477.4 MB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3419, allocations: 0 / 477.4 MB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.3431, allocations: 0.5591 MB / 477.9 MB, free: 10.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009455/0.344, allocations: 222.8 kB / 478.1 MB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/0.3594, allocations: 10.76 MB / 488.9 MB, free: 15.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007666/0.3602, allocations: 1.224 MB / 490.1 MB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005864/0.3608, allocations: 162.1 kB / 490.3 MB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007206/0.3616, allocations: 0.6555 MB / 490.9 MB, free: 13.17 MB / 414.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3616, allocations: 0 / 490.9 MB, free: 13.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05818/0.4198, allocations: 33.08 MB / 0.5117 GB, free: 12.28 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.78/15.2, allocations: 4 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)