Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_4_0_0_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.0008213/0.0008215, allocations: 84.19 kB / 16.31 MB, free: 6.453 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.0008126/0.0008127, allocations: 179.4 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.2 MB / 241.2 MB, free: 352 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002957, allocations: 9.469 kB / 300.9 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.101, allocations: 50.42 MB / 351.3 MB, free: 3.938 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.00707/0.1082, allocations: 7.296 MB / 358.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.1218, allocations: 10.33 MB / 369 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001389/0.1232, allocations: 19.94 kB / 369 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002567/0.1258, allocations: 0.6797 MB / 369.7 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004406/0.1303, allocations: 0.9353 MB / 370.6 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001933/0.1322, allocations: 482.8 kB / 371.1 MB, free: 136 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1921/0.3244, allocations: 2.46 MB / 373.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006743/0.3251, allocations: 300.5 kB / 373.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.3262, allocations: 496.6 kB / 374.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007015/0.3269, allocations: 0.5534 MB / 374.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.327, allocations: 40.03 kB / 374.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001772/0.3288, allocations: 0.6901 MB / 375.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.3289, allocations: 175.1 kB / 375.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004414/0.3294, allocations: 356.7 kB / 376.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001969/0.3314, allocations: 1.515 MB / 377.6 MB, free: 9.461 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3314, allocations: 0 / 377.6 MB, free: 9.461 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3314, allocations: 0 / 377.6 MB, free: 9.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.099e-05/0.3314, allocations: 0 / 377.6 MB, free: 9.461 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.003744/0.3352, allocations: 1.996 MB / 379.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.3353, allocations: 10.36 kB / 379.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.3354, allocations: 105.3 kB / 379.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002862/0.3357, allocations: 222.8 kB / 380 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.3378, allocations: 1.222 MB / 381.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.977e-05/0.3378, allocations: 45.47 kB / 381.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.3379, allocations: 53.58 kB / 381.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.3394, allocations: 0.7113 MB / 382 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.3394, allocations: 1.641 kB / 382 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.784e-05/0.3394, allocations: 20.59 kB / 382 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.692e-05/0.3395, allocations: 17.5 kB / 382 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.3409, allocations: 0.6154 MB / 382.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003838/0.3447, allocations: 2.528 MB / 385.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.3459, allocations: 0.6565 MB / 385.8 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008952/0.3468, allocations: 0.5652 MB / 386.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00787/0.3547, allocations: 7.523 MB / 393.9 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008731/0.3556, allocations: 403.9 kB / 394.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 3.256e-06/0.3557, allocations: 0 / 394.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.005373/0.361, allocations: 2.093 MB / 396.4 MB, free: 15.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/0.3611, allocations: 93.38 kB / 396.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001768/0.3629, allocations: 1.424 MB / 397.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.851e-05/0.363, allocations: 36.08 kB / 398 MB, free: 15.19 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006119/0.3636, allocations: 0.8036 MB / 398.8 MB, free: 14.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001954/0.3638, allocations: 228.4 kB / 399 MB, free: 14.76 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.324e-05/0.3638, allocations: 9.688 kB / 399 MB, free: 14.76 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.364, allocations: 338.2 kB / 399.3 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005329/0.3645, allocations: 272.7 kB / 399.6 MB, free: 14.4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006392/0.3652, allocations: 479.9 kB / 400.1 MB, free: 14.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005811/0.3658, allocations: 330.7 kB / 400.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3658, allocations: 0 / 400.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00193/0.3677, allocations: 1.179 MB / 401.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.3678, allocations: 6.281 kB / 401.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/0.3679, allocations: 73 kB / 401.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.369, allocations: 0.7002 MB / 402.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004454/0.3694, allocations: 127 kB / 402.5 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.3707, allocations: 1.117 MB / 403.6 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008865/0.3716, allocations: 103.5 kB / 403.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.427e-05/0.3717, allocations: 37.77 kB / 403.7 MB, free: 12.28 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 ($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 () * 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 (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.0006321/0.3723, allocations: 292.8 kB / 404 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/0.3725, allocations: 197.7 kB / 404.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002296/0.3749, allocations: 1.144 MB / 405.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3749, allocations: 12 kB / 405.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3749, allocations: 0 / 405.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3749, allocations: 0 / 405.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.3763, allocations: 0.9783 MB / 406.3 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001204/0.3764, allocations: 68 kB / 406.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003293/0.3768, allocations: 67.94 kB / 406.5 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.3779, allocations: 0.6704 MB / 407.1 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.146e-05/0.378, allocations: 19.98 kB / 407.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.3793, allocations: 1.08 MB / 408.2 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.3793, allocations: 3.953 kB / 408.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.382, allocations: 1.413 MB / 409.6 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005258/0.3825, allocations: 282.5 kB / 409.9 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/0.3827, allocations: 12 kB / 409.9 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004347/0.3831, allocations: 43.95 kB / 410 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.3833, allocations: 52.36 kB / 410 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.758e-05/0.3833, allocations: 28 kB / 410.1 MB, free: 6.141 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001283/0.3846, allocations: 0.9292 MB / 411 MB, free: 5.191 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3846, allocations: 0 / 411 MB, free: 5.191 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001096/0.3857, allocations: 427.5 kB / 411.4 MB, free: 4.773 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 (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.003746/0.3895, allocations: 2.324 MB / 413.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.3916, allocations: 0.9051 MB / 414.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3916, allocations: 0 / 414.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.3927, allocations: 0.5399 MB / 415.2 MB, free: 1.004 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.3939, allocations: 206.9 kB / 415.4 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02134/0.4153, allocations: 10 MB / 425.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008549/0.4162, allocations: 1.212 MB / 426.6 MB, free: 4.727 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006803/0.4169, allocations: 166.1 kB / 426.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007547/0.4176, allocations: 0.6256 MB / 427.4 MB, free: 3.938 MB / 334.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4176, allocations: 0 / 427.4 MB, free: 3.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0555/0.4731, allocations: 30.28 MB / 457.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.4734, allocations: 236.4 kB / 457.9 MB, free: 5.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.973/3.446, allocations: 4 kB / 457.9 MB, free: 5.789 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1)