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.001415/0.001415, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001646/0.001646, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 64.77 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08224/0.08343, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.007882/0.09134, allocations: 8.325 MB / 365.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1572/0.2486, allocations: 11.34 MB / 377.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007674/0.2494, allocations: 20.84 kB / 377.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00184/0.2512, allocations: 0.8492 MB / 378.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002953/0.2542, allocations: 1.228 MB / 379.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.256, allocations: 0.702 MB / 380 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003377/0.2594, allocations: 2.701 MB / 382.7 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004201/0.2599, allocations: 353.9 kB / 383.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006135/0.2605, allocations: 0.5447 MB / 383.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005691/0.2611, allocations: 0.6246 MB / 384.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.2612, allocations: 66.88 kB / 384.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001779/0.263, allocations: 0.7966 MB / 385.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.2632, allocations: 221.7 kB / 385.3 MB, free: 6.691 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005539/0.2637, allocations: 0.7658 MB / 386.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002145/0.2659, allocations: 2.103 MB / 388.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2659, allocations: 1.375 kB / 388.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2659, allocations: 0 / 388.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.289e-05/0.2659, allocations: 4 kB / 388.2 MB, free: 5.43 MB / 302.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.002952/0.2689, allocations: 2.222 MB / 390.4 MB, free: 3.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2689, allocations: 9.375 kB / 390.4 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.978e-05/0.269, allocations: 100.9 kB / 390.5 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003663/0.2694, allocations: 234.3 kB / 390.8 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.2708, allocations: 1.296 MB / 392.1 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.2709, allocations: 51.03 kB / 392.1 MB, free: 3.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.531e-05/0.271, allocations: 59.42 kB / 392.2 MB, free: 3.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.2722, allocations: 0.6852 MB / 392.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.2722, allocations: 0 / 392.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-05/0.2723, allocations: 24.23 kB / 392.9 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.2723, allocations: 21.19 kB / 392.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.2735, allocations: 0.5654 MB / 393.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00289/0.2764, allocations: 2.527 MB / 396 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.2775, allocations: 0.6252 MB / 396.6 MB, free: 152 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008944/0.2785, allocations: 0.5413 MB / 397.2 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007165/0.2856, allocations: 5.888 MB / 403 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008064/0.2865, allocations: 402 kB / 403.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 4.508e-06/0.2865, allocations: 0 / 403.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.006971/0.2935, allocations: 2.426 MB / 405.9 MB, free: 8.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.2935, allocations: 93.66 kB / 406 MB, free: 8.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.2952, allocations: 1.423 MB / 407.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.331e-05/0.2953, allocations: 37.7 kB / 407.4 MB, free: 7.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006133/0.2959, allocations: 0.7851 MB / 408.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.2961, allocations: 245.6 kB / 408.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002091/0.2963, allocations: 142.6 kB / 408.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.2964, allocations: 334 kB / 408.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006335/0.2971, allocations: 265.8 kB / 409.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000733/0.2978, allocations: 446.1 kB / 409.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003352/0.3012, allocations: 1.556 MB / 411.2 MB, free: 3.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3012, allocations: 0 / 411.2 MB, free: 3.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002262/0.3034, allocations: 1.156 MB / 412.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.3035, allocations: 10.95 kB / 412.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/0.3036, allocations: 80 kB / 412.4 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009632/0.3046, allocations: 0.5967 MB / 413 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005892/0.3052, allocations: 139.8 kB / 413.1 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.3066, allocations: 1.52 MB / 414.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007889/0.3074, allocations: 95.98 kB / 414.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.875e-05/0.3075, allocations: 40 kB / 414.8 MB, free: 15.55 MB / 334.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.0005342/0.308, allocations: 301 kB / 415.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/0.3082, allocations: 197.7 kB / 415.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002472/0.3107, allocations: 1.162 MB / 416.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.3107, allocations: 11.94 kB / 416.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3107, allocations: 0 / 416.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3108, allocations: 3.984 kB / 416.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.3119, allocations: 1.008 MB / 417.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000102/0.312, allocations: 79.98 kB / 417.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003897/0.3124, allocations: 59.94 kB / 417.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001045/0.3135, allocations: 0.6553 MB / 418.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.211e-05/0.3135, allocations: 20 kB / 418.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.3148, allocations: 1.141 MB / 419.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3148, allocations: 3.938 kB / 419.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002663/0.3174, allocations: 1.438 MB / 420.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003855/0.3178, allocations: 284.4 kB / 421.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.318, allocations: 12 kB / 421.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004934/0.3185, allocations: 35.89 kB / 421.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.3187, allocations: 52.5 kB / 421.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-05/0.3187, allocations: 27.98 kB / 421.3 MB, free: 8.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.3199, allocations: 0.9406 MB / 422.2 MB, free: 7.984 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3199, allocations: 4 kB / 422.2 MB, free: 7.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000965/0.3208, allocations: 435.4 kB / 422.6 MB, free: 7.555 MB / 334.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.003601/0.3244, allocations: 2.355 MB / 425 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.3265, allocations: 0.8893 MB / 425.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3265, allocations: 0 / 425.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.3278, allocations: 0.5531 MB / 426.4 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.3288, allocations: 216.2 kB / 426.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01574/0.3445, allocations: 12 MB / 438.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006675/0.3452, allocations: 1.22 MB / 439.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005807/0.3458, allocations: 166.1 kB / 440 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006358/0.3465, allocations: 0.6548 MB / 440.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3465, allocations: 0 / 440.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05762/0.4041, allocations: 32.63 MB / 473.3 MB, free: 4.074 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.78, allocations: 7.5 kB / 473.3 MB, free: 4.07 MB / 382.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)