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.001371/0.001371, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 67.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2773, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.01015/0.2875, allocations: 8.323 MB / 417.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0172/0.3047, allocations: 11.33 MB / 428.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001607/0.3063, allocations: 59.56 kB / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002788/0.3092, allocations: 0.8394 MB / 429.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005765/0.315, allocations: 1.223 MB / 430.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002903/0.318, allocations: 0.709 MB / 431.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005388/0.3234, allocations: 2.716 MB / 434 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007991/0.3242, allocations: 365.7 kB / 434.3 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.3253, allocations: 0.552 MB / 434.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.3264, allocations: 0.625 MB / 435.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002743/0.3267, allocations: 68 kB / 435.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002549/0.3293, allocations: 0.7922 MB / 436.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003031/0.3296, allocations: 218.7 kB / 436.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.3307, allocations: 0.7686 MB / 437.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0037/0.3345, allocations: 2.139 MB / 439.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.3345, allocations: 0 / 439.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3345, allocations: 0 / 439.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.243e-05/0.3346, allocations: 0 / 439.5 MB, free: 2.645 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.004151/0.3388, allocations: 2.292 MB / 441.8 MB, free: 292 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.3388, allocations: 8.031 kB / 441.8 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001403/0.339, allocations: 102.7 kB / 441.9 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005029/0.3395, allocations: 243.6 kB / 442.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002136/0.3416, allocations: 1.322 MB / 443.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/0.3417, allocations: 45.31 kB / 443.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.3418, allocations: 59.98 kB / 443.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.3432, allocations: 0.6899 MB / 444.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.3432, allocations: 0 / 444.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.195e-05/0.3433, allocations: 20 kB / 444.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.3433, allocations: 24 kB / 444.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.3446, allocations: 0.5634 MB / 444.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003944/0.3486, allocations: 2.515 MB / 447.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.3499, allocations: 0.6194 MB / 448 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009273/0.3508, allocations: 0.5415 MB / 448.5 MB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007683/0.3585, allocations: 5.907 MB / 454.4 MB, free: 2.586 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008593/0.3594, allocations: 403.3 kB / 454.8 MB, free: 2.184 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.675e-06/0.3594, allocations: 0 / 454.8 MB, free: 2.184 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.006879/0.3663, allocations: 2.426 MB / 457.2 MB, free: 15.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.681e-05/0.3664, allocations: 89.66 kB / 457.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.3683, allocations: 1.422 MB / 458.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.643e-05/0.3684, allocations: 45.7 kB / 458.8 MB, free: 14.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007233/0.3691, allocations: 0.7908 MB / 459.6 MB, free: 13.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000262/0.3694, allocations: 257.8 kB / 459.8 MB, free: 13.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002251/0.3696, allocations: 138.6 kB / 460 MB, free: 12.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.3698, allocations: 341.9 kB / 460.3 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006651/0.3705, allocations: 261.9 kB / 460.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007769/0.3713, allocations: 442.1 kB / 461 MB, free: 11.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003495/0.3748, allocations: 1.552 MB / 462.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.3748, allocations: 0 / 462.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002362/0.3772, allocations: 1.165 MB / 463.7 MB, free: 9.023 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.3772, allocations: 8 kB / 463.7 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001275/0.3774, allocations: 83.98 kB / 463.8 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.3785, allocations: 0.6023 MB / 464.4 MB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006209/0.3791, allocations: 143.8 kB / 464.6 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/0.3807, allocations: 1.522 MB / 466.1 MB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007671/0.3815, allocations: 91.55 kB / 466.2 MB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.179e-05/0.3816, allocations: 36 kB / 466.2 MB, free: 6.488 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.0006492/0.3823, allocations: 303 kB / 466.5 MB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002748/0.3826, allocations: 214.7 kB / 466.7 MB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00247/0.385, allocations: 1.157 MB / 467.9 MB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.3851, allocations: 8 kB / 467.9 MB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3851, allocations: 0 / 467.9 MB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3851, allocations: 3.984 kB / 467.9 MB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001474/0.3866, allocations: 0.9987 MB / 468.9 MB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001307/0.3868, allocations: 79.98 kB / 469 MB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004141/0.3872, allocations: 67.88 kB / 469 MB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.3884, allocations: 0.6592 MB / 469.7 MB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.462e-05/0.3885, allocations: 16 kB / 469.7 MB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/0.3899, allocations: 1.138 MB / 470.8 MB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.39, allocations: 4 kB / 470.8 MB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003003/0.393, allocations: 1.445 MB / 472.3 MB, free: 284 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005231/0.3935, allocations: 295.7 kB / 472.6 MB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000178/0.3937, allocations: 15.94 kB / 472.6 MB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005109/0.3942, allocations: 39.95 kB / 472.6 MB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.3944, allocations: 48.5 kB / 472.7 MB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-05/0.3945, allocations: 27.98 kB / 472.7 MB, free: 15.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001383/0.3959, allocations: 0.9522 MB / 473.6 MB, free: 14.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3959, allocations: 0 / 473.6 MB, free: 14.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001211/0.3971, allocations: 438.9 kB / 474.1 MB, free: 14.43 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.004142/0.4013, allocations: 2.383 MB / 476.5 MB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002215/0.4035, allocations: 0.8736 MB / 477.3 MB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4035, allocations: 4 kB / 477.3 MB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.4048, allocations: 0.5511 MB / 477.9 MB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.4061, allocations: 224.9 kB / 478.1 MB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01882/0.4249, allocations: 10.76 MB / 488.9 MB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008858/0.4258, allocations: 1.224 MB / 490.1 MB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005559/0.4264, allocations: 162.1 kB / 490.3 MB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007915/0.4272, allocations: 0.6477 MB / 490.9 MB, free: 13.2 MB / 414.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4272, allocations: 4 kB / 490.9 MB, free: 13.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07949/0.5067, allocations: 33.09 MB / 0.5117 GB, free: 12.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.03/16.54, allocations: 8.062 kB / 0.5117 GB, free: 12.29 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)