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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001374, allocations: 114.3 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.013/2.013, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 48.14 kB / 280.3 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1681, allocations: 46.62 MB / 326.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.0108/0.179, allocations: 8.124 MB / 335 MB, free: 12.53 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01632/0.1954, allocations: 10.83 MB / 345.8 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002023/0.1976, allocations: 15.94 kB / 345.8 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003046/0.2006, allocations: 0.752 MB / 346.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007517/0.2082, allocations: 1.011 MB / 347.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003246/0.2115, allocations: 0.6082 MB / 348.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005871/0.2173, allocations: 2.642 MB / 350.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000551/0.2179, allocations: 357.7 kB / 351.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009738/0.2189, allocations: 0.5247 MB / 351.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007624/0.2197, allocations: 0.6133 MB / 352.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001221/0.2198, allocations: 68 kB / 352.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/0.2221, allocations: 0.7104 MB / 353.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.2224, allocations: 218.7 kB / 353.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007971/0.2232, allocations: 0.7686 MB / 354.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002338/0.2255, allocations: 2.105 MB / 356.2 MB, free: 7.203 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.2255, allocations: 0 / 356.2 MB, free: 7.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2255, allocations: 0 / 356.2 MB, free: 7.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.2256, allocations: 0 / 356.2 MB, free: 7.203 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.003716/0.2293, allocations: 2.215 MB / 358.4 MB, free: 4.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.025e-05/0.2294, allocations: 8.031 kB / 358.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.2295, allocations: 106.7 kB / 358.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003009/0.2299, allocations: 222.3 kB / 358.8 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/0.2318, allocations: 1.304 MB / 360.1 MB, free: 3.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.523e-05/0.2319, allocations: 41.31 kB / 360.1 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.232, allocations: 55.98 kB / 360.2 MB, free: 3.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.2334, allocations: 0.6978 MB / 360.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.2335, allocations: 0 / 360.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.41e-05/0.2335, allocations: 23.94 kB / 360.9 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/0.2336, allocations: 16 kB / 360.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.2349, allocations: 0.575 MB / 361.5 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003703/0.2386, allocations: 2.522 MB / 364 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.2398, allocations: 0.6192 MB / 364.6 MB, free: 14.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009004/0.2407, allocations: 0.5415 MB / 365.1 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008798/0.2495, allocations: 7.492 MB / 372.6 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008135/0.2503, allocations: 385.9 kB / 373 MB, free: 4.941 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 3.226e-06/0.2504, allocations: 0 / 373 MB, free: 4.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.00557/0.2559, allocations: 2.075 MB / 375.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/0.256, allocations: 89.55 kB / 375.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/0.2578, allocations: 1.435 MB / 376.6 MB, free: 1.254 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/0.2578, allocations: 37.7 kB / 376.7 MB, free: 1.211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006798/0.2585, allocations: 0.8016 MB / 377.5 MB, free: 408 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.2587, allocations: 228.8 kB / 377.7 MB, free: 176 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.2589, allocations: 138.6 kB / 377.8 MB, free: 32 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.2029/0.4618, allocations: 339.1 kB / 378.1 MB, free: 54.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.463, allocations: 253 kB / 378.4 MB, free: 54.35 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008241/0.4638, allocations: 455.9 kB / 378.8 MB, free: 54.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.4653, allocations: 0.7391 MB / 379.6 MB, free: 53.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/0.4653, allocations: 1.375 kB / 379.6 MB, free: 53.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003114/0.4684, allocations: 1.129 MB / 380.7 MB, free: 53.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/0.4685, allocations: 7.781 kB / 380.7 MB, free: 53.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/0.4686, allocations: 74.8 kB / 380.8 MB, free: 53.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001437/0.4701, allocations: 0.704 MB / 381.5 MB, free: 53.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005246/0.4706, allocations: 112.9 kB / 381.6 MB, free: 53.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/0.4721, allocations: 1.122 MB / 382.7 MB, free: 53.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007096/0.4728, allocations: 84.66 kB / 382.8 MB, free: 53.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.203e-05/0.4729, allocations: 39.52 kB / 382.8 MB, free: 53 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(5,26)} Notification: Performance of prepare postOptimizeDAE: time 0.0005836/0.4735, allocations: 289.2 kB / 383.1 MB, free: 52.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002485/0.4737, allocations: 201.8 kB / 383.3 MB, free: 52.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002955/0.4767, allocations: 1.088 MB / 384.4 MB, free: 52.3 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.4767, allocations: 6.344 kB / 384.4 MB, free: 52.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.4767, allocations: 0 / 384.4 MB, free: 52.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.4767, allocations: 2.906 kB / 384.4 MB, free: 52.3 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.4787, allocations: 0.9843 MB / 385.4 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001664/0.4789, allocations: 76.2 kB / 385.5 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/0.4793, allocations: 54.94 kB / 385.5 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001416/0.4807, allocations: 0.6714 MB / 386.2 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-05/0.4808, allocations: 16.45 kB / 386.2 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.4821, allocations: 1.097 MB / 387.3 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.4822, allocations: 3.938 kB / 387.3 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003516/0.4857, allocations: 1.354 MB / 388.7 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.4862, allocations: 280.7 kB / 388.9 MB, free: 50.05 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.4864, allocations: 13.91 kB / 389 MB, free: 50.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004878/0.4869, allocations: 34.69 kB / 389 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.4871, allocations: 48.36 kB / 389 MB, free: 50.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.46e-05/0.4872, allocations: 20.03 kB / 389.1 MB, free: 50.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00165/0.4889, allocations: 0.9568 MB / 390 MB, free: 49.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4889, allocations: 0 / 390 MB, free: 49.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009759/0.4899, allocations: 432.4 kB / 390.4 MB, free: 49.59 MB / 318.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) * 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 {(5,24)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004209/0.4941, allocations: 2.259 MB / 392.7 MB, free: 48.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002481/0.4966, allocations: 0.8742 MB / 393.6 MB, free: 48.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.4966, allocations: 0 / 393.6 MB, free: 48.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.4977, allocations: 0.5316 MB / 394.1 MB, free: 47.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007371/0.4984, allocations: 181.8 kB / 394.3 MB, free: 47.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01847/0.5169, allocations: 12.45 MB / 406.7 MB, free: 36.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.5175, allocations: 1.22 MB / 408 MB, free: 35.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005223/0.518, allocations: 157.6 kB / 408.1 MB, free: 35.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005047/0.5185, allocations: 0.6282 MB / 408.7 MB, free: 34.47 MB / 318.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5185, allocations: 0 / 408.7 MB, free: 34.47 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.983/3.501, allocations: 31.74 MB / 440.5 MB, free: 2.672 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/3.501, allocations: 251.1 kB / 440.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.872/8.374, allocations: 0 / 440.7 MB, free: 2.418 MB / 318.1 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/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)