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.0007549/0.0007548, allocations: 93.36 kB / 16.65 MB, free: 6.348 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.0008192/0.0008193, allocations: 177.3 kB / 17.56 MB, free: 5.949 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.289/1.289, allocations: 223.3 MB / 241.6 MB, free: 176 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000288/0.0002881, allocations: 8 kB / 301.5 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09926/0.09957, allocations: 50.41 MB / 351.9 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.007676/0.1073, allocations: 7.817 MB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01585/0.1232, allocations: 11.37 MB / 371.1 MB, free: 336 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00162/0.1249, allocations: 19.88 kB / 371.2 MB, free: 316 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2073/0.3322, allocations: 0.7512 MB / 371.9 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005134/0.3373, allocations: 0.9991 MB / 372.9 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002231/0.3396, allocations: 0.5087 MB / 373.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005066/0.3447, allocations: 2.593 MB / 376 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005487/0.3453, allocations: 317.8 kB / 376.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0011/0.3464, allocations: 0.5057 MB / 376.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006123/0.347, allocations: 0.5863 MB / 377.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.657e-05/0.3471, allocations: 37.09 kB / 377.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002143/0.3493, allocations: 0.7552 MB / 378.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.3494, allocations: 181.5 kB / 378.4 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007035/0.3501, allocations: 0.7601 MB / 379.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002607/0.3528, allocations: 2.032 MB / 381.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3528, allocations: 3.938 kB / 381.2 MB, free: 7.418 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3528, allocations: 4 kB / 381.2 MB, free: 7.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.127e-05/0.3528, allocations: 2.531 kB / 381.2 MB, free: 7.414 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.003507/0.3563, allocations: 1.968 MB / 383.1 MB, free: 6.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.3564, allocations: 8.625 kB / 383.2 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001498/0.3565, allocations: 102.9 kB / 383.3 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002621/0.3568, allocations: 222.4 kB / 383.5 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/0.3586, allocations: 1.311 MB / 384.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.874e-05/0.3587, allocations: 40.23 kB / 384.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.3588, allocations: 67.41 kB / 384.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.3602, allocations: 0.7126 MB / 385.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3603, allocations: 0 / 385.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.306e-05/0.3603, allocations: 22.16 kB / 385.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/0.3604, allocations: 18.56 kB / 385.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.3618, allocations: 0.6112 MB / 386.2 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003743/0.3655, allocations: 2.524 MB / 388.8 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.3668, allocations: 0.6762 MB / 389.5 MB, free: 4.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009069/0.3677, allocations: 0.5589 MB / 390 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008959/0.3766, allocations: 7.517 MB / 397.5 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009295/0.3776, allocations: 407.7 kB / 397.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 3.587e-06/0.3776, allocations: 0 / 397.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.006406/0.384, allocations: 2.169 MB / 400.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/0.3842, allocations: 88.7 kB / 400.2 MB, free: 11.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.3862, allocations: 1.433 MB / 401.6 MB, free: 10.33 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.625e-05/0.3862, allocations: 40.66 kB / 401.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007185/0.387, allocations: 0.7959 MB / 402.4 MB, free: 9.578 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/0.3872, allocations: 222.4 kB / 402.7 MB, free: 9.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.283e-05/0.3873, allocations: 71.58 kB / 402.7 MB, free: 9.332 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3874, allocations: 334.7 kB / 403.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006045/0.388, allocations: 277.8 kB / 403.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007664/0.3888, allocations: 481.2 kB / 403.8 MB, free: 8.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.3902, allocations: 0.787 MB / 404.6 MB, free: 7.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3902, allocations: 0 / 404.6 MB, free: 7.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002277/0.3925, allocations: 1.19 MB / 405.8 MB, free: 6.359 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.3925, allocations: 4 kB / 405.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/0.3927, allocations: 77.58 kB / 405.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.3939, allocations: 0.6881 MB / 406.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000473/0.3944, allocations: 127.8 kB / 406.7 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.3957, allocations: 1.124 MB / 407.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009177/0.3967, allocations: 99.3 kB / 407.9 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.228e-05/0.3968, allocations: 36 kB / 407.9 MB, free: 4.18 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.0006539/0.3974, allocations: 293.6 kB / 408.2 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002104/0.3976, allocations: 197.7 kB / 408.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00244/0.4001, allocations: 1.142 MB / 409.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.4001, allocations: 8 kB / 409.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4001, allocations: 0 / 409.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.4001, allocations: 7.938 kB / 409.6 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001301/0.4014, allocations: 0.9799 MB / 410.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.791e-05/0.4015, allocations: 71.98 kB / 410.6 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/0.4019, allocations: 67.89 kB / 410.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.403, allocations: 0.6749 MB / 411.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/0.4031, allocations: 19.98 kB / 411.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.4043, allocations: 1.077 MB / 412.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4043, allocations: 0 / 412.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002671/0.407, allocations: 1.433 MB / 413.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004781/0.4075, allocations: 278.3 kB / 414.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002703/0.4078, allocations: 12 kB / 414.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005907/0.4084, allocations: 47.89 kB / 414.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.4085, allocations: 48.38 kB / 414.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-05/0.4086, allocations: 27.98 kB / 414.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001492/0.4101, allocations: 0.9488 MB / 415.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4101, allocations: 3.938 kB / 415.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001165/0.4113, allocations: 427.4 kB / 415.7 MB, free: 12.29 MB / 334.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.003825/0.4151, allocations: 2.346 MB / 418 MB, free: 9.961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002093/0.4172, allocations: 0.9013 MB / 418.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.4172, allocations: 0 / 418.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.4185, allocations: 0.54 MB / 419.5 MB, free: 8.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.4198, allocations: 214 kB / 419.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02708/0.4469, allocations: 12.66 MB / 432.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/0.448, allocations: 1.22 MB / 433.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006991/0.4487, allocations: 158.1 kB / 433.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007984/0.4495, allocations: 0.6243 MB / 434.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of SimCode: time 1.552e-06/0.4495, allocations: 0 / 434.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.336/1.786, allocations: 30.84 MB / 465.2 MB, free: 10.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002535/1.786, allocations: 251 kB / 465.4 MB, free: 9.887 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.946/4.732, allocations: 0 / 465.4 MB, free: 9.887 MB / 382.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/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)