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.001517/0.001517, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001517/0.001518, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.433/1.433, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001675/0.001675, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09649/0.09817, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.1907/0.2889, allocations: 8.181 MB / 382.8 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01239/0.3013, allocations: 10.95 MB / 393.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002935/0.3044, allocations: 56.56 kB / 393.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002935/0.3074, allocations: 0.8246 MB / 394.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005791/0.3132, allocations: 1.21 MB / 395.9 MB, free: 244 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002917/0.3162, allocations: 0.6986 MB / 396.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005804/0.322, allocations: 2.64 MB / 399.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008103/0.3229, allocations: 353.6 kB / 399.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001295/0.3242, allocations: 0.5302 MB / 400.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001055/0.3252, allocations: 0.6125 MB / 400.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001648/0.3254, allocations: 70.69 kB / 400.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002727/0.3282, allocations: 0.714 MB / 401.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002947/0.3285, allocations: 222.5 kB / 401.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001025/0.3295, allocations: 0.7664 MB / 402.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00415/0.3337, allocations: 2.127 MB / 404.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.057e-05/0.3337, allocations: 4 kB / 404.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3337, allocations: 0 / 404.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.018e-05/0.3338, allocations: 1.375 kB / 404.6 MB, free: 12.44 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.004888/0.3387, allocations: 2.28 MB / 406.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.3388, allocations: 10.09 kB / 406.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001487/0.3389, allocations: 103.9 kB / 407 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004417/0.3394, allocations: 235.7 kB / 407.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002456/0.3418, allocations: 1.323 MB / 408.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.083e-05/0.3419, allocations: 39.91 kB / 408.6 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.342, allocations: 55.64 kB / 408.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.3435, allocations: 0.6907 MB / 409.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.3435, allocations: 0.75 kB / 409.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.187e-05/0.3436, allocations: 25.19 kB / 409.4 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.3436, allocations: 13.09 kB / 409.4 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.345, allocations: 0.5777 MB / 409.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004468/0.3495, allocations: 2.509 MB / 412.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.3509, allocations: 0.617 MB / 413.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009704/0.3519, allocations: 0.5405 MB / 413.6 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.3624, allocations: 7.501 MB / 421.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008734/0.3633, allocations: 379.9 kB / 421.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 4.117e-06/0.3633, allocations: 5.375 kB / 421.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.006642/0.37, allocations: 2.094 MB / 423.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/0.3701, allocations: 85.55 kB / 423.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002205/0.3723, allocations: 1.439 MB / 425.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.3724, allocations: 37.7 kB / 425.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007874/0.3732, allocations: 0.8062 MB / 425.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002524/0.3735, allocations: 234 kB / 426.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.3737, allocations: 146.6 kB / 426.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3739, allocations: 341.9 kB / 426.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006462/0.3746, allocations: 249.9 kB / 426.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007978/0.3754, allocations: 462.2 kB / 427.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.3769, allocations: 0.7324 MB / 428.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-06/0.3769, allocations: 4 kB / 428.1 MB, free: 8.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002458/0.3793, allocations: 1.141 MB / 429.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.3794, allocations: 8 kB / 429.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/0.3795, allocations: 72 kB / 429.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.3808, allocations: 0.6957 MB / 430 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004782/0.3813, allocations: 115.7 kB / 430.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.3829, allocations: 1.128 MB / 431.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.3839, allocations: 99.48 kB / 431.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.726e-05/0.384, allocations: 32 kB / 431.4 MB, free: 5.316 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.0005949/0.3846, allocations: 293.6 kB / 431.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000326/0.3849, allocations: 214.7 kB / 431.9 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002471/0.3874, allocations: 1.091 MB / 433 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.3875, allocations: 8 kB / 433 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3875, allocations: 7.938 kB / 433 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.3875, allocations: 0 / 433 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.3891, allocations: 0.9717 MB / 433.9 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001054/0.3892, allocations: 68 kB / 434 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.3896, allocations: 55.94 kB / 434.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.3908, allocations: 0.6672 MB / 434.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.665e-05/0.3909, allocations: 27.92 kB / 434.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.3924, allocations: 1.096 MB / 435.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3924, allocations: 0 / 435.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.3953, allocations: 1.352 MB / 437.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006458/0.396, allocations: 291.5 kB / 437.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003317/0.3963, allocations: 12 kB / 437.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006115/0.397, allocations: 43.89 kB / 437.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.3971, allocations: 48.38 kB / 437.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.668e-05/0.3972, allocations: 31.92 kB / 437.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001649/0.3989, allocations: 0.9449 MB / 438.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3989, allocations: 0 / 438.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001339/0.4002, allocations: 435 kB / 439 MB, free: 13.51 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.004334/0.4046, allocations: 2.283 MB / 441.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002353/0.4069, allocations: 0.8506 MB / 442.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.453e-06/0.407, allocations: 8.125 kB / 442.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.4083, allocations: 0.5173 MB / 442.7 MB, free: 9.797 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.4097, allocations: 199 kB / 442.8 MB, free: 9.605 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02109/0.4308, allocations: 10.77 MB / 453.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.4319, allocations: 1.224 MB / 454.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005265/0.4325, allocations: 162.1 kB / 455 MB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007962/0.4333, allocations: 0.6282 MB / 455.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4333, allocations: 0 / 455.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08057/0.5139, allocations: 32.51 MB / 488.1 MB, free: 11.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.75/16.27, allocations: 4 kB / 488.1 MB, free: 11.85 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)