Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002159/0.002158, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.09/2.09, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 82.67 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.027e-05/2.979e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3416, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1444/0.4861, allocations: 90.67 MB / 453.1 MB, free: 11.53 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/0.4864, allocations: 67.97 kB / 453.2 MB, free: 11.46 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1887/0.6752, allocations: 54.48 MB / 0.4957 GB, free: 4.977 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.6752, allocations: 0 / 0.4957 GB, free: 4.977 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001035/0.6753, allocations: 24.88 kB / 0.4958 GB, free: 4.953 MB / 395.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.004643/0.68, allocations: 1.735 MB / 0.4975 GB, free: 3.168 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.962e-05/0.6801, allocations: 12.03 kB / 0.4975 GB, free: 3.156 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004821/0.6806, allocations: 226.4 kB / 0.4977 GB, free: 2.934 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003251/0.6838, allocations: 1.251 MB / 0.4989 GB, free: 1.609 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.034e-05/0.6839, allocations: 19.98 kB / 0.4989 GB, free: 1.59 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.684, allocations: 36 kB / 0.499 GB, free: 1.555 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001253/0.6853, allocations: 438.6 kB / 0.4994 GB, free: 1.129 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.6867, allocations: 0.5509 MB / 0.4999 GB, free: 0.5625 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.6868, allocations: 0 / 0.4999 GB, free: 0.5625 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.002e-05/0.6869, allocations: 7.938 kB / 0.4999 GB, free: 0.5547 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.828e-05/0.6869, allocations: 16 kB / 0.4999 GB, free: 0.5391 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2658/0.9527, allocations: 2.473 MB / 0.5024 GB, free: 97.19 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.9538, allocations: 0.4995 MB / 0.5028 GB, free: 97.17 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009275/0.9548, allocations: 475.2 kB / 0.5033 GB, free: 97.15 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01568/0.9705, allocations: 8.766 MB / 0.5119 GB, free: 90.05 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000806/0.9713, allocations: 308 kB / 0.5122 GB, free: 89.99 MB / 395.1 MB Notification: Performance of pre-optimization done (n=67): time 4.499e-06/0.9714, allocations: 0 / 0.5122 GB, free: 89.99 MB / 395.1 MB Notification: Performance of matching and sorting (n=67): time 0.002988/0.9744, allocations: 0.9506 MB / 0.5131 GB, free: 89.83 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.9745, allocations: 90.92 kB / 0.5132 GB, free: 89.73 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/0.9769, allocations: 1.153 MB / 0.5143 GB, free: 89.53 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/0.9771, allocations: 32.97 kB / 0.5143 GB, free: 89.5 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007428/0.9779, allocations: 0.6889 MB / 0.515 GB, free: 89.28 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003076/0.9782, allocations: 222.4 kB / 0.5152 GB, free: 89.16 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/0.9782, allocations: 1.406 kB / 0.5152 GB, free: 89.16 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 9.01e-05/0.9783, allocations: 341.2 kB / 0.5155 GB, free: 88.85 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004979/0.9789, allocations: 187.1 kB / 0.5157 GB, free: 88.85 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005923/0.9795, allocations: 378.3 kB / 0.5161 GB, free: 88.63 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.9806, allocations: 355.4 kB / 0.5164 GB, free: 88.62 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.9806, allocations: 2.625 kB / 0.5164 GB, free: 88.62 MB / 395.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002564/0.9832, allocations: 0.8941 MB / 0.5173 GB, free: 88.53 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.9833, allocations: 6.688 kB / 0.5173 GB, free: 88.53 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/0.9835, allocations: 73.56 kB / 0.5174 GB, free: 88.53 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001926/0.9854, allocations: 0.6723 MB / 0.518 GB, free: 88.51 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009304/0.9864, allocations: 126.8 kB / 0.5181 GB, free: 88.51 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002796/0.9892, allocations: 1.277 MB / 0.5194 GB, free: 87.96 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.9906, allocations: 90.42 kB / 0.5195 GB, free: 87.95 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.9908, allocations: 36.94 kB / 0.5195 GB, free: 87.95 MB / 395.1 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.0002979/0.9911, allocations: 133.7 kB / 0.5196 GB, free: 87.84 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003101/0.9942, allocations: 0.9489 MB / 0.5206 GB, free: 87.68 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004662/0.9947, allocations: 205.4 kB / 0.5208 GB, free: 87.58 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003695/0.9984, allocations: 1.103 MB / 0.5218 GB, free: 87.48 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.9985, allocations: 8.188 kB / 0.5218 GB, free: 87.48 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.9985, allocations: 0 / 0.5218 GB, free: 87.48 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.9985, allocations: 3.938 kB / 0.5219 GB, free: 87.48 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/1, allocations: 0.9182 MB / 0.5227 GB, free: 87.28 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001532/1.001, allocations: 69.81 kB / 0.5228 GB, free: 87.28 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000666/1.001, allocations: 69.38 kB / 0.5229 GB, free: 87.28 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001628/1.003, allocations: 0.6713 MB / 0.5235 GB, free: 87.26 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.895e-05/1.003, allocations: 8.906 kB / 0.5235 GB, free: 87.26 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002227/1.005, allocations: 1.257 MB / 0.5248 GB, free: 86.71 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/1.005, allocations: 0 / 0.5248 GB, free: 86.71 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003138/1.008, allocations: 1.291 MB / 0.526 GB, free: 86.5 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007462/1.009, allocations: 301.1 kB / 0.5263 GB, free: 86.3 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003115/1.01, allocations: 8.906 kB / 0.5263 GB, free: 86.3 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009651/1.011, allocations: 41.55 kB / 0.5264 GB, free: 86.3 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001816/1.011, allocations: 47.36 kB / 0.5264 GB, free: 86.3 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.758e-05/1.011, allocations: 31.33 kB / 0.5264 GB, free: 86.3 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.00159/1.012, allocations: 0.8633 MB / 0.5273 GB, free: 86.15 MB / 395.1 MB Notification: Performance of sort global known variables: time 8.22e-07/1.013, allocations: 3.906 kB / 0.5273 GB, free: 86.15 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001717/1.014, allocations: 452.2 kB / 0.5277 GB, free: 86.14 MB / 395.1 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.004684/1.019, allocations: 2.349 MB / 0.53 GB, free: 85.4 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002135/1.021, allocations: 0.7083 MB / 0.5307 GB, free: 85.33 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/1.021, allocations: 0.9375 kB / 0.5307 GB, free: 85.33 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/1.023, allocations: 455.7 kB / 0.5311 GB, free: 85.25 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/1.024, allocations: 175.5 kB / 0.5313 GB, free: 85.24 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007623/1.031, allocations: 2.672 MB / 0.5339 GB, free: 84.52 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006737/1.032, allocations: 1.251 MB / 0.5351 GB, free: 83.79 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009714/1.033, allocations: 0.6242 MB / 0.5358 GB, free: 83.78 MB / 395.1 MB Notification: Performance of SimCode: time 1.523e-06/1.033, allocations: 0 / 0.5358 GB, free: 83.78 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.14/4.173, allocations: 31.36 MB / 0.5664 GB, free: 68.65 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1)