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.0007483/0.0007487, allocations: 95.06 kB / 17.3 MB, free: 6.344 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.000925/0.0009252, allocations: 181.5 kB / 18.21 MB, free: 5.527 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.256/1.256, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004616/0.0004616, allocations: 12 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0855/0.08598, allocations: 47.57 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.007027/0.09305, allocations: 7.677 MB / 336.7 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.106, allocations: 11.02 MB / 347.7 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00113/0.1071, allocations: 15.94 kB / 347.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002202/0.1093, allocations: 0.756 MB / 348.5 MB, free: 128 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003727/0.1131, allocations: 0.9835 MB / 349.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001874/0.115, allocations: 0.5035 MB / 350 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003909/0.1189, allocations: 2.548 MB / 352.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004547/0.1194, allocations: 318.6 kB / 352.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005589/0.12, allocations: 489.3 kB / 353.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006174/0.1206, allocations: 0.5782 MB / 353.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.1207, allocations: 36 kB / 354 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001594/0.1223, allocations: 0.6869 MB / 354.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.1225, allocations: 178.7 kB / 354.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006991/0.1232, allocations: 0.7624 MB / 355.6 MB, free: 9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002463/0.1257, allocations: 2.031 MB / 357.6 MB, free: 6.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1257, allocations: 3.938 kB / 357.6 MB, free: 6.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1257, allocations: 4 kB / 357.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.842e-05/0.1257, allocations: 0 / 357.6 MB, free: 6.953 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.003225/0.129, allocations: 1.975 MB / 359.6 MB, free: 4.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.129, allocations: 8.031 kB / 359.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001445/0.1292, allocations: 102.7 kB / 359.7 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002443/0.1294, allocations: 218.4 kB / 359.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.1313, allocations: 1.312 MB / 361.2 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.1313, allocations: 37.31 kB / 361.3 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.1314, allocations: 56 kB / 361.3 MB, free: 3.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.1329, allocations: 0.7173 MB / 362 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.133, allocations: 0 / 362 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.195e-05/0.133, allocations: 20 kB / 362.1 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.232e-05/0.1331, allocations: 23.92 kB / 362.1 MB, free: 2.336 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.1344, allocations: 0.6141 MB / 362.7 MB, free: 1.719 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003694/0.1381, allocations: 2.542 MB / 365.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.1394, allocations: 0.6662 MB / 365.9 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009769/0.1404, allocations: 0.565 MB / 366.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009349/0.1498, allocations: 7.508 MB / 374 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008092/0.1506, allocations: 409.9 kB / 374.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.635e-06/0.1506, allocations: 0 / 374.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005888/0.1565, allocations: 2.168 MB / 376.5 MB, free: 2.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.1566, allocations: 85.55 kB / 376.6 MB, free: 2.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/0.1583, allocations: 1.435 MB / 378.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.073e-05/0.1584, allocations: 37.7 kB / 378.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006458/0.159, allocations: 0.8055 MB / 378.9 MB, free: 112 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1457/0.3047, allocations: 216.9 kB / 379.1 MB, free: 53.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.3049, allocations: 67.33 kB / 379.2 MB, free: 53.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.387e-05/0.305, allocations: 339.3 kB / 379.5 MB, free: 53.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007229/0.3057, allocations: 282.2 kB / 379.8 MB, free: 53.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006753/0.3064, allocations: 480.8 kB / 380.3 MB, free: 52.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.3077, allocations: 0.7801 MB / 381 MB, free: 52.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.3077, allocations: 1.938 kB / 381 MB, free: 52.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002261/0.31, allocations: 1.182 MB / 382.2 MB, free: 52.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.31, allocations: 7.875 kB / 382.2 MB, free: 52.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.145e-05/0.3101, allocations: 80.73 kB / 382.3 MB, free: 52.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001229/0.3113, allocations: 0.6886 MB / 383 MB, free: 52.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004478/0.3118, allocations: 127.9 kB / 383.1 MB, free: 52.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.3131, allocations: 1.127 MB / 384.2 MB, free: 51.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007047/0.3138, allocations: 103.9 kB / 384.3 MB, free: 51.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.76e-05/0.3139, allocations: 35 kB / 384.4 MB, free: 51.89 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.0004612/0.3143, allocations: 288.2 kB / 384.7 MB, free: 51.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.3145, allocations: 201.3 kB / 384.9 MB, free: 51.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002286/0.3168, allocations: 1.137 MB / 386 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.3168, allocations: 5.531 kB / 386 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3169, allocations: 0 / 386 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.3169, allocations: 3.469 kB / 386 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.3179, allocations: 0.9826 MB / 387 MB, free: 50.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9e-05/0.318, allocations: 68.7 kB / 387.1 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003419/0.3184, allocations: 68.92 kB / 387.1 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.3195, allocations: 0.6642 MB / 387.8 MB, free: 50.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.617e-05/0.3196, allocations: 23.89 kB / 387.8 MB, free: 50.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.3207, allocations: 1.091 MB / 388.9 MB, free: 50 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.3207, allocations: 7.938 kB / 388.9 MB, free: 49.99 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.3232, allocations: 1.427 MB / 390.3 MB, free: 49.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002815/0.3234, allocations: 282.1 kB / 390.6 MB, free: 49.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001408/0.3236, allocations: 13.98 kB / 390.6 MB, free: 49.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000458/0.3241, allocations: 45.77 kB / 390.7 MB, free: 49.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.3242, allocations: 48.75 kB / 390.7 MB, free: 49.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.925e-05/0.3243, allocations: 25.02 kB / 390.7 MB, free: 49.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.3254, allocations: 0.9512 MB / 391.7 MB, free: 48.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3254, allocations: 0 / 391.7 MB, free: 48.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008809/0.3263, allocations: 433.9 kB / 392.1 MB, free: 48.68 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.003189/0.3295, allocations: 2.338 MB / 394.5 MB, free: 47.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00177/0.3312, allocations: 0.9002 MB / 395.4 MB, free: 47.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3313, allocations: 0 / 395.4 MB, free: 47.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.3323, allocations: 0.5549 MB / 395.9 MB, free: 47.01 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006902/0.333, allocations: 171.5 kB / 396.1 MB, free: 46.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01695/0.35, allocations: 12.64 MB / 408.7 MB, free: 34.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.3504, allocations: 1.222 MB / 409.9 MB, free: 33.54 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005094/0.3509, allocations: 162.1 kB / 410.1 MB, free: 33.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004628/0.3514, allocations: 0.6243 MB / 410.7 MB, free: 32.75 MB / 318.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3514, allocations: 0 / 410.7 MB, free: 32.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04162/0.393, allocations: 30.81 MB / 441.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001373/0.3932, allocations: 250.3 kB / 441.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.828/3.221, allocations: 4 kB / 441.8 MB, free: 1.652 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)