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.001553/0.001553, allocations: 109.5 kB / 17.73 MB, free: 5.363 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.001934/0.001934, allocations: 188.1 kB / 18.66 MB, free: 4.441 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.409/1.409, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.00123/0.00123, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09068/0.09192, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.1904/0.2823, allocations: 8.166 MB / 382.8 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01185/0.2942, allocations: 10.96 MB / 393.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001654/0.2959, allocations: 55.31 kB / 393.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002615/0.2986, allocations: 0.8202 MB / 394.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005236/0.3038, allocations: 1.218 MB / 395.9 MB, free: 252 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002677/0.3065, allocations: 0.6873 MB / 396.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005044/0.3116, allocations: 2.65 MB / 399.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007021/0.3123, allocations: 353.1 kB / 399.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001236/0.3136, allocations: 0.5305 MB / 400.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009598/0.3146, allocations: 0.617 MB / 400.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001542/0.3147, allocations: 71.31 kB / 400.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/0.3171, allocations: 0.7093 MB / 401.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.3174, allocations: 222.5 kB / 401.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008564/0.3183, allocations: 0.7675 MB / 402.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003203/0.3215, allocations: 2.114 MB / 404.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3215, allocations: 1.75 kB / 404.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3215, allocations: 0 / 404.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.74e-05/0.3215, allocations: 0 / 404.6 MB, free: 12.47 MB / 334.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.004312/0.3259, allocations: 2.218 MB / 406.8 MB, free: 11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3259, allocations: 11.61 kB / 406.8 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.326, allocations: 101.2 kB / 406.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002975/0.3263, allocations: 218.9 kB / 407.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002232/0.3286, allocations: 1.308 MB / 408.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.246e-05/0.3287, allocations: 39.5 kB / 408.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.3288, allocations: 56.47 kB / 408.5 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.3302, allocations: 0.6908 MB / 409.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.3302, allocations: 0 / 409.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.782e-05/0.3303, allocations: 20.25 kB / 409.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.629e-05/0.3303, allocations: 21.67 kB / 409.3 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.3316, allocations: 0.5661 MB / 409.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003903/0.3355, allocations: 2.515 MB / 412.3 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.3368, allocations: 0.6297 MB / 413 MB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009036/0.3377, allocations: 0.5363 MB / 413.5 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01016/0.3479, allocations: 7.486 MB / 421 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009132/0.3488, allocations: 383.5 kB / 421.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.657e-06/0.3488, allocations: 1.219 kB / 421.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.006164/0.355, allocations: 2.085 MB / 423.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.581e-05/0.3551, allocations: 93.52 kB / 423.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.357, allocations: 1.435 MB / 425 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.44e-05/0.3571, allocations: 33.7 kB / 425 MB, free: 11.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007452/0.3578, allocations: 0.8016 MB / 425.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/0.358, allocations: 220.7 kB / 426 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.3582, allocations: 138.6 kB / 426.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002334/0.3584, allocations: 341.9 kB / 426.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005903/0.359, allocations: 253.8 kB / 426.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006921/0.3597, allocations: 462.2 kB / 427.2 MB, free: 9.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.361, allocations: 0.7363 MB / 427.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.3611, allocations: 4 kB / 427.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002164/0.3632, allocations: 1.129 MB / 429.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.3633, allocations: 8 kB / 429.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.852e-05/0.3634, allocations: 71.98 kB / 429.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.3646, allocations: 0.6995 MB / 429.8 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.365, allocations: 115.7 kB / 430 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.3663, allocations: 1.128 MB / 431.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008585/0.3672, allocations: 87.31 kB / 431.2 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.01e-05/0.3673, allocations: 42.81 kB / 431.2 MB, free: 5.477 MB / 350.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.0005047/0.3678, allocations: 289.6 kB / 431.5 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002476/0.3681, allocations: 213.6 kB / 431.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002209/0.3703, allocations: 1.084 MB / 432.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.3703, allocations: 4 kB / 432.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3703, allocations: 0 / 432.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.3703, allocations: 7.984 kB / 432.8 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.3715, allocations: 0.9794 MB / 433.8 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.508e-05/0.3716, allocations: 71.98 kB / 433.8 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/0.372, allocations: 59.88 kB / 433.9 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.3731, allocations: 0.6633 MB / 434.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.898e-05/0.3731, allocations: 23.92 kB / 434.6 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/0.3743, allocations: 1.097 MB / 435.7 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3744, allocations: 7.922 kB / 435.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002552/0.3769, allocations: 1.343 MB / 437 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000516/0.3774, allocations: 286.5 kB / 437.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.3776, allocations: 12 kB / 437.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/0.3781, allocations: 35.95 kB / 437.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.3782, allocations: 48.38 kB / 437.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.052e-05/0.3783, allocations: 22 kB / 437.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001186/0.3794, allocations: 0.9488 MB / 438.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3795, allocations: 3.938 kB / 438.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001002/0.3805, allocations: 427.4 kB / 438.8 MB, free: 13.7 MB / 366.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.003513/0.384, allocations: 2.265 MB / 441.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00201/0.386, allocations: 0.8585 MB / 441.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.386, allocations: 128 / 441.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.3872, allocations: 0.529 MB / 442.5 MB, free: 9.992 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008855/0.3881, allocations: 191.5 kB / 442.6 MB, free: 9.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01586/0.4039, allocations: 10.7 MB / 453.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007479/0.4047, allocations: 1.216 MB / 454.6 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004769/0.4052, allocations: 162.1 kB / 454.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006316/0.4059, allocations: 0.6243 MB / 455.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4059, allocations: 0 / 455.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06476/0.4706, allocations: 33.18 MB / 488.5 MB, free: 11.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/15.71, allocations: 12.06 kB / 488.5 MB, free: 11.44 MB / 414.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)