Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001385, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009896/0.0009895, allocations: 99.33 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.767e-05/1.781e-05, allocations: 0 / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.09997, allocations: 50.43 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.346/0.4461, allocations: 92.94 MB / 480.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.4463, allocations: 75.91 kB / 480.6 MB, free: 1.656 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1196/0.5659, allocations: 58.15 MB / 0.5261 GB, free: 7.406 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.566, allocations: 0 / 0.5261 GB, free: 7.406 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.564e-05/0.5661, allocations: 24 kB / 0.5261 GB, free: 7.383 MB / 410.7 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.003137/0.5692, allocations: 1.732 MB / 0.5278 GB, free: 5.598 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.5693, allocations: 12.03 kB / 0.5278 GB, free: 5.586 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002842/0.5695, allocations: 221.4 kB / 0.528 GB, free: 5.367 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.5715, allocations: 1.255 MB / 0.5293 GB, free: 4.043 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.5715, allocations: 16 kB / 0.5293 GB, free: 4.027 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.074e-05/0.5716, allocations: 39.89 kB / 0.5293 GB, free: 3.988 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007302/0.5724, allocations: 434.6 kB / 0.5297 GB, free: 3.562 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009051/0.5733, allocations: 0.5547 MB / 0.5303 GB, free: 2.992 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.5733, allocations: 0 / 0.5303 GB, free: 2.992 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.108e-05/0.5734, allocations: 0 / 0.5303 GB, free: 2.992 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.5734, allocations: 23.98 kB / 0.5303 GB, free: 2.969 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003694/0.5771, allocations: 2.487 MB / 0.5327 GB, free: 376 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006166/0.5777, allocations: 0.5027 MB / 0.5332 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005365/0.5783, allocations: 475 kB / 0.5337 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01039/0.5887, allocations: 8.761 MB / 0.5422 GB, free: 5.273 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005444/0.5893, allocations: 309.1 kB / 0.5425 GB, free: 4.961 MB / 426.7 MB Notification: Performance of pre-optimization done (n=67): time 3.386e-06/0.5893, allocations: 0 / 0.5425 GB, free: 4.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.001815/0.5911, allocations: 0.9538 MB / 0.5434 GB, free: 3.992 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.5912, allocations: 85.55 kB / 0.5435 GB, free: 3.891 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001673/0.5929, allocations: 1.152 MB / 0.5447 GB, free: 2.707 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.16e-05/0.5929, allocations: 37.69 kB / 0.5447 GB, free: 2.664 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000672/0.5936, allocations: 0.7859 MB / 0.5455 GB, free: 1.867 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.5938, allocations: 216.9 kB / 0.5457 GB, free: 1.652 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.5938, allocations: 0 / 0.5457 GB, free: 1.652 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.594, allocations: 341.9 kB / 0.546 GB, free: 1.312 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002896/0.5943, allocations: 178.1 kB / 0.5462 GB, free: 1.137 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/0.5947, allocations: 377.9 kB / 0.5465 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006919/0.5954, allocations: 360 kB / 0.5469 GB, free: 348 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.5954, allocations: 4 kB / 0.5469 GB, free: 344 kB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.2147/0.8101, allocations: 1.053 MB / 0.5479 GB, free: 107.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.8102, allocations: 9.812 kB / 0.5479 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001342/0.8104, allocations: 73.62 kB / 0.548 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/0.8117, allocations: 0.6711 MB / 0.5486 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005353/0.8122, allocations: 128.9 kB / 0.5488 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.8142, allocations: 1.273 MB / 0.55 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008686/0.8151, allocations: 85.3 kB / 0.5501 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-05/0.8152, allocations: 38.67 kB / 0.5501 GB, free: 107.3 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: RS2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Q2.vcs:VARIABLE(unit = "V" ) type: Real Q1.B.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Q1.vcs:VARIABLE(unit = "V" ) type: Real Q2.Einternal:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.VCC.counter,VCC.counter,$PRE.VEE.counter,VEE.counter,$whenCondition2,$whenCondition1,$PRE.VCC.T0,VCC.T0,$PRE.VCC.counter2,VCC.counter2,$PRE.VEE.T0,VEE.T0,$PRE.VEE.counter2,VEE.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 26} Notification: Performance of prepare postOptimizeDAE: time 0.0002457/0.8154, allocations: 137.9 kB / 0.5502 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001627/0.817, allocations: 0.95 MB / 0.5512 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.8172, allocations: 203.3 kB / 0.5514 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002264/0.8195, allocations: 1.098 MB / 0.5524 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.8195, allocations: 9.453 kB / 0.5524 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.8195, allocations: 3.297 kB / 0.5524 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.8196, allocations: 2.062 kB / 0.5525 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.8208, allocations: 0.9208 MB / 0.5534 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001016/0.8209, allocations: 68.22 kB / 0.5534 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003814/0.8213, allocations: 70.98 kB / 0.5535 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.8224, allocations: 0.6679 MB / 0.5541 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.014e-05/0.8224, allocations: 23.27 kB / 0.5542 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.8239, allocations: 1.246 MB / 0.5554 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.824, allocations: 2.531 kB / 0.5554 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.826, allocations: 1.284 MB / 0.5566 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004474/0.8265, allocations: 295.5 kB / 0.5569 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.8266, allocations: 15.05 kB / 0.5569 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005664/0.8272, allocations: 36.61 kB / 0.557 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.8274, allocations: 51.39 kB / 0.557 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.8274, allocations: 27.56 kB / 0.557 GB, free: 105.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001389/0.8288, allocations: 0.8698 MB / 0.5579 GB, free: 105.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8289, allocations: 0 / 0.5579 GB, free: 105.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001369/0.8302, allocations: 452.4 kB / 0.5583 GB, free: 105.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Q1.vbe,Q1.vbc,Q2.vbe,Q2.vbc) * 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.003521/0.8338, allocations: 2.347 MB / 0.5606 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.8353, allocations: 0.7012 MB / 0.5613 GB, free: 104.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.8353, allocations: 1.422 kB / 0.5613 GB, free: 104.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008373/0.8361, allocations: 464.3 kB / 0.5617 GB, free: 104.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009081/0.8371, allocations: 200 kB / 0.5619 GB, free: 104.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005451/0.8425, allocations: 2.63 MB / 0.5645 GB, free: 104 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008723/0.8434, allocations: 1.252 MB / 0.5657 GB, free: 103.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007052/0.8441, allocations: 174.5 kB / 0.5659 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005898/0.8447, allocations: 0.6265 MB / 0.5665 GB, free: 103.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.472e-06/0.8447, allocations: 0 / 0.5665 GB, free: 103.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0522/0.897, allocations: 28.38 MB / 0.5942 GB, free: 101.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/0.8972, allocations: 162.6 kB / 0.5944 GB, free: 101.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.945/3.842, allocations: 0 / 0.5944 GB, free: 101.4 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1)