Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000995/0.000995, allocations: 172.6 kB / 8.47 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.066/1.066, allocations: 205.2 MB / 214.1 MB, free: 5.082 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009177/0.0009176, allocations: 90.34 kB / 262.1 MB, free: 5.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1447/0.1457, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05888/0.2046, allocations: 47.58 MB / 362.6 MB, free: 9.84 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2012/0.4058, allocations: 90.58 MB / 453.2 MB, free: 8.707 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001665/0.406, allocations: 70.97 kB / 453.3 MB, free: 8.699 MB / 314.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.1083/0.5143, allocations: 56.45 MB / 0.4978 GB, free: 1.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.5143, allocations: 12 kB / 0.4978 GB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003411/0.5147, allocations: 221.3 kB / 0.498 GB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002032/0.5167, allocations: 1.264 MB / 0.4992 GB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/0.5168, allocations: 19.98 kB / 0.4993 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.5169, allocations: 32 kB / 0.4993 GB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007997/0.5177, allocations: 442.5 kB / 0.4997 GB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008847/0.5186, allocations: 0.5509 MB / 0.5003 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.5186, allocations: 0 / 0.5003 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.228e-05/0.5187, allocations: 11.98 kB / 0.5003 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/0.5187, allocations: 16 kB / 0.5003 GB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003658/0.5224, allocations: 2.493 MB / 0.5027 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005899/0.523, allocations: 458.2 kB / 0.5032 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005354/0.5235, allocations: 463.4 kB / 0.5036 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009535/0.5331, allocations: 8.712 MB / 0.5121 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004346/0.5335, allocations: 297.7 kB / 0.5124 GB, free: 0.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.314e-06/0.5335, allocations: 0 / 0.5124 GB, free: 0.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001635/0.5352, allocations: 0.9193 MB / 0.5133 GB, free: 15.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.5352, allocations: 86.72 kB / 0.5134 GB, free: 15.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001425/0.5367, allocations: 1.155 MB / 0.5145 GB, free: 14.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.637e-05/0.5367, allocations: 29.7 kB / 0.5145 GB, free: 14.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/0.537, allocations: 416.8 kB / 0.5149 GB, free: 13.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.5372, allocations: 216.8 kB / 0.5151 GB, free: 13.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/0.5372, allocations: 0 / 0.5151 GB, free: 13.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.5373, allocations: 331 kB / 0.5154 GB, free: 13.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.5376, allocations: 189.8 kB / 0.5156 GB, free: 13.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003953/0.538, allocations: 375.9 kB / 0.516 GB, free: 12.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005832/0.5386, allocations: 322.8 kB / 0.5163 GB, free: 12.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.5386, allocations: 0 / 0.5163 GB, free: 12.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001586/0.5402, allocations: 1.046 MB / 0.5173 GB, free: 11.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.5402, allocations: 4 kB / 0.5173 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/0.5404, allocations: 71.98 kB / 0.5174 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.5415, allocations: 0.6761 MB / 0.518 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005143/0.5421, allocations: 123.9 kB / 0.5182 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.5437, allocations: 1.292 MB / 0.5194 GB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008499/0.5446, allocations: 99.11 kB / 0.5195 GB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.052e-05/0.5447, allocations: 36 kB / 0.5196 GB, free: 9.066 MB / 378.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.000219/0.5449, allocations: 133.2 kB / 0.5197 GB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.5451, allocations: 197.7 kB / 0.5199 GB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002559/0.5477, allocations: 1.154 MB / 0.521 GB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.5477, allocations: 12 kB / 0.521 GB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.5477, allocations: 0 / 0.521 GB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.5477, allocations: 3.984 kB / 0.521 GB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.5489, allocations: 0.9086 MB / 0.5219 GB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001146/0.5491, allocations: 67.98 kB / 0.522 GB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003994/0.5495, allocations: 79.94 kB / 0.522 GB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.5506, allocations: 0.6817 MB / 0.5227 GB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.751e-05/0.5507, allocations: 8 kB / 0.5227 GB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001511/0.5522, allocations: 1.26 MB / 0.5239 GB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.5522, allocations: 3.906 kB / 0.5239 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001949/0.5541, allocations: 1.263 MB / 0.5252 GB, free: 3.203 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002406/0.5566, allocations: 1.939 MB / 0.5271 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000456/0.557, allocations: 302.5 kB / 0.5274 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.5572, allocations: 3.984 kB / 0.5274 GB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005286/0.5578, allocations: 43.97 kB / 0.5274 GB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.5579, allocations: 48.55 kB / 0.5275 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.405e-05/0.558, allocations: 31.98 kB / 0.5275 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001055/0.559, allocations: 0.8592 MB / 0.5283 GB, free: 15.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001512/0.5606, allocations: 471.1 kB / 0.5288 GB, free: 15.46 MB / 394.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.0009002/0.5615, allocations: 0.6084 MB / 0.5294 GB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.5628, allocations: 0.7023 MB / 0.5301 GB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5628, allocations: 0 / 0.5301 GB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008644/0.5637, allocations: 453 kB / 0.5305 GB, free: 13.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005452/0.5643, allocations: 179 kB / 0.5307 GB, free: 13.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004521/0.5688, allocations: 2.396 MB / 0.533 GB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008454/0.5697, allocations: 1.352 MB / 0.5343 GB, free: 9.73 MB / 394.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5697, allocations: 0 / 0.5343 GB, free: 9.73 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1)