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.001169/0.001169, allocations: 108 kB / 17.15 MB, free: 6.305 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.001186/0.001186, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001108/0.001107, allocations: 52.56 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08733/0.08844, allocations: 46.64 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009558/0.09804, allocations: 8.121 MB / 334.8 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01776/0.1158, allocations: 11.16 MB / 346 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001808/0.1177, allocations: 15.94 kB / 346 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003204/0.121, allocations: 0.752 MB / 346.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005694/0.1267, allocations: 0.9795 MB / 347.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002251/0.129, allocations: 0.5074 MB / 348.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005164/0.1341, allocations: 2.56 MB / 350.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006226/0.1348, allocations: 318.6 kB / 351.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007771/0.1356, allocations: 0.4935 MB / 351.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007527/0.1363, allocations: 0.6016 MB / 352.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.1365, allocations: 48 kB / 352.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002134/0.1386, allocations: 0.6869 MB / 352.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002688/0.1389, allocations: 202.7 kB / 353.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009549/0.1399, allocations: 0.7451 MB / 353.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003176/0.1431, allocations: 2.066 MB / 356 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1431, allocations: 0 / 356 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1431, allocations: 0 / 356 MB, free: 7.391 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.872e-05/0.1432, allocations: 4 kB / 356 MB, free: 7.387 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.005152/0.1483, allocations: 2.2 MB / 358.2 MB, free: 5.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.579e-05/0.1484, allocations: 12.03 kB / 358.2 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001668/0.1486, allocations: 102.7 kB / 358.3 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003803/0.149, allocations: 222.3 kB / 358.5 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002456/0.1514, allocations: 1.312 MB / 359.8 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.532e-05/0.1515, allocations: 41.31 kB / 359.8 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.1516, allocations: 52 kB / 359.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.1535, allocations: 0.6899 MB / 360.6 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.1535, allocations: 3.938 kB / 360.6 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.099e-05/0.1536, allocations: 27.98 kB / 360.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.871e-05/0.1536, allocations: 20 kB / 360.6 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.1556, allocations: 0.5673 MB / 361.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005344/0.1609, allocations: 2.53 MB / 363.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001829/0.1628, allocations: 0.6193 MB / 364.3 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.1642, allocations: 0.5415 MB / 364.9 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01221/0.1764, allocations: 7.492 MB / 372.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.1776, allocations: 378 kB / 372.7 MB, free: 5.141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 4.488e-06/0.1776, allocations: 0 / 372.7 MB, free: 5.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.008634/0.1863, allocations: 2.075 MB / 374.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.1864, allocations: 93.48 kB / 374.9 MB, free: 2.922 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002381/0.1888, allocations: 1.439 MB / 376.4 MB, free: 1.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.747e-05/0.1889, allocations: 37.7 kB / 376.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009138/0.1898, allocations: 0.8015 MB / 377.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.19, allocations: 220.8 kB / 377.4 MB, free: 380 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002808/0.1903, allocations: 142.5 kB / 377.5 MB, free: 232 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.1497/0.34, allocations: 341.7 kB / 377.9 MB, free: 54.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007913/0.3408, allocations: 251.1 kB / 378.1 MB, free: 54.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006728/0.3415, allocations: 450.8 kB / 378.6 MB, free: 54.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.3428, allocations: 0.7381 MB / 379.3 MB, free: 54.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.3428, allocations: 2.75 kB / 379.3 MB, free: 54.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002285/0.3451, allocations: 1.134 MB / 380.4 MB, free: 54.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.3451, allocations: 7 kB / 380.4 MB, free: 54.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001167/0.3453, allocations: 73.59 kB / 380.5 MB, free: 54.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.3464, allocations: 0.7047 MB / 381.2 MB, free: 54.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.3469, allocations: 113 kB / 381.3 MB, free: 54.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.348, allocations: 1.131 MB / 382.5 MB, free: 53.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006575/0.3487, allocations: 86.02 kB / 382.5 MB, free: 53.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.805e-05/0.3488, allocations: 42.84 kB / 382.6 MB, free: 53.44 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.000459/0.3492, allocations: 290.5 kB / 382.9 MB, free: 53.22 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.3494, allocations: 197.2 kB / 383.1 MB, free: 53.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/0.3516, allocations: 1.083 MB / 384.1 MB, free: 52.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.3516, allocations: 9 kB / 384.2 MB, free: 52.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3516, allocations: 0.8906 kB / 384.2 MB, free: 52.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.3516, allocations: 3.641 kB / 384.2 MB, free: 52.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.3528, allocations: 0.9807 MB / 385.1 MB, free: 52.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.987e-05/0.3529, allocations: 73.03 kB / 385.2 MB, free: 52.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000319/0.3532, allocations: 56.42 kB / 385.3 MB, free: 52.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.3544, allocations: 0.666 MB / 385.9 MB, free: 52.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.285e-05/0.3545, allocations: 24.53 kB / 386 MB, free: 52.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.3556, allocations: 1.088 MB / 387 MB, free: 51.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3556, allocations: 3.938 kB / 387.1 MB, free: 51.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.358, allocations: 1.358 MB / 388.4 MB, free: 50.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003225/0.3583, allocations: 279.1 kB / 388.7 MB, free: 50.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001557/0.3585, allocations: 13.62 kB / 388.7 MB, free: 50.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004463/0.359, allocations: 34.2 kB / 388.7 MB, free: 50.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.3591, allocations: 46.11 kB / 388.8 MB, free: 50.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-05/0.3592, allocations: 29.62 kB / 388.8 MB, free: 50.49 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001227/0.3604, allocations: 0.9505 MB / 389.8 MB, free: 50.11 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3604, allocations: 0.875 kB / 389.8 MB, free: 50.11 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008462/0.3613, allocations: 428.9 kB / 390.2 MB, free: 50.06 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.003295/0.3646, allocations: 2.265 MB / 392.4 MB, free: 48.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001884/0.3665, allocations: 0.8555 MB / 393.3 MB, free: 48.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3665, allocations: 2.625 kB / 393.3 MB, free: 48.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009729/0.3675, allocations: 0.5246 MB / 393.8 MB, free: 48.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007131/0.3682, allocations: 175.8 kB / 394 MB, free: 48.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/0.3846, allocations: 12.44 MB / 406.4 MB, free: 36.97 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.3851, allocations: 1.22 MB / 407.6 MB, free: 35.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004803/0.3856, allocations: 165.5 kB / 407.8 MB, free: 35.56 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004396/0.386, allocations: 0.6243 MB / 408.4 MB, free: 34.94 MB / 318.1 MB Notification: Performance of SimCode: time 8.41e-07/0.386, allocations: 0 / 408.4 MB, free: 34.94 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.65/2.036, allocations: 31.01 MB / 439.4 MB, free: 3.871 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002312/2.036, allocations: 258.8 kB / 439.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.651/4.687, allocations: 7.906 kB / 439.7 MB, free: 3.602 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)