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.001237/0.001237, allocations: 113.8 kB / 17.07 MB, free: 5.969 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.001251/0.001251, allocations: 193.3 kB / 18.01 MB, free: 5.051 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.425/1.425, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2871, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009494/0.2966, allocations: 8.318 MB / 408.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01464/0.3113, allocations: 11.29 MB / 419.9 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001284/0.3126, allocations: 55.56 kB / 419.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002249/0.3149, allocations: 0.8473 MB / 420.8 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004182/0.3191, allocations: 1.223 MB / 422 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001962/0.3211, allocations: 0.7012 MB / 422.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004453/0.3256, allocations: 2.689 MB / 425.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005764/0.3262, allocations: 361.7 kB / 425.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008975/0.3271, allocations: 0.5559 MB / 426.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007697/0.3279, allocations: 0.6172 MB / 426.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.328, allocations: 64 kB / 427 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002005/0.33, allocations: 0.7805 MB / 427.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002266/0.3303, allocations: 218.6 kB / 427.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008349/0.3311, allocations: 0.7686 MB / 428.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002967/0.3341, allocations: 2.127 MB / 430.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3341, allocations: 0 / 430.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3341, allocations: 0 / 430.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.578e-05/0.3341, allocations: 4 kB / 430.8 MB, free: 10.07 MB / 350.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.003679/0.3378, allocations: 2.292 MB / 433.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.3379, allocations: 11.89 kB / 433.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/0.338, allocations: 102.7 kB / 433.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002906/0.3383, allocations: 231.5 kB / 433.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001923/0.3402, allocations: 1.322 MB / 434.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.3403, allocations: 41.25 kB / 434.8 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.3404, allocations: 59.94 kB / 434.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.3417, allocations: 0.6939 MB / 435.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3418, allocations: 0 / 435.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.854e-05/0.3418, allocations: 20 kB / 435.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.3418, allocations: 16 kB / 435.6 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.3432, allocations: 0.5712 MB / 436.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003853/0.347, allocations: 2.527 MB / 438.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.3484, allocations: 0.6193 MB / 439.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009237/0.3493, allocations: 0.5384 MB / 439.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009686/0.359, allocations: 7.496 MB / 447.4 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008692/0.3599, allocations: 381.9 kB / 447.8 MB, free: 7.711 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 3.146e-06/0.3599, allocations: 4 kB / 447.8 MB, free: 7.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.006119/0.366, allocations: 2.083 MB / 449.8 MB, free: 5.594 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.3662, allocations: 89.55 kB / 449.9 MB, free: 5.488 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00181/0.368, allocations: 1.435 MB / 451.4 MB, free: 4.016 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.494e-05/0.368, allocations: 37.7 kB / 451.4 MB, free: 3.973 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007334/0.3688, allocations: 0.8024 MB / 452.2 MB, free: 3.164 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.369, allocations: 241.9 kB / 452.4 MB, free: 2.926 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.3692, allocations: 138.6 kB / 452.6 MB, free: 2.781 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3694, allocations: 337.9 kB / 452.9 MB, free: 2.445 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006046/0.37, allocations: 249.9 kB / 453.1 MB, free: 2.203 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007762/0.3708, allocations: 458.2 kB / 453.6 MB, free: 1.676 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.3722, allocations: 0.7363 MB / 454.3 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.3722, allocations: 4 kB / 454.3 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002227/0.3745, allocations: 1.145 MB / 455.5 MB, free: 15.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.3745, allocations: 10.5 kB / 455.5 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001117/0.3746, allocations: 79.98 kB / 455.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/0.3759, allocations: 0.6918 MB / 456.3 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004627/0.3764, allocations: 111.8 kB / 456.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.3778, allocations: 1.136 MB / 457.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006541/0.3785, allocations: 99.47 kB / 457.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.862e-05/0.3786, allocations: 32 kB / 457.6 MB, free: 13.52 MB / 382.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.0004885/0.3791, allocations: 289.7 kB / 457.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/0.3793, allocations: 210.7 kB / 458.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002339/0.3817, allocations: 1.084 MB / 459.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/0.3817, allocations: 7.938 kB / 459.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3817, allocations: 7.938 kB / 459.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3817, allocations: 0 / 459.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.3829, allocations: 0.968 MB / 460.2 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.761e-05/0.383, allocations: 76.06 kB / 460.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003415/0.3833, allocations: 63.88 kB / 460.3 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/0.3845, allocations: 0.6711 MB / 461 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.342e-05/0.3846, allocations: 23.98 kB / 461 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.3859, allocations: 1.085 MB / 462.1 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3859, allocations: 0 / 462.1 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002701/0.3886, allocations: 1.364 MB / 463.5 MB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004185/0.389, allocations: 287.7 kB / 463.7 MB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.3892, allocations: 15.94 kB / 463.8 MB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004625/0.3897, allocations: 39.95 kB / 463.8 MB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.3898, allocations: 48.38 kB / 463.9 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-05/0.3899, allocations: 23.98 kB / 463.9 MB, free: 7.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001258/0.3912, allocations: 0.9449 MB / 464.8 MB, free: 6.156 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3912, allocations: 0 / 464.8 MB, free: 6.156 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009038/0.3921, allocations: 435 kB / 465.2 MB, free: 5.73 MB / 382.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.003902/0.396, allocations: 2.306 MB / 467.5 MB, free: 3.387 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.3982, allocations: 0.8467 MB / 468.4 MB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3983, allocations: 4.125 kB / 468.4 MB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.3995, allocations: 0.529 MB / 468.9 MB, free: 1.988 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.4007, allocations: 208.3 kB / 469.1 MB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01706/0.4177, allocations: 10.77 MB / 479.9 MB, free: 6.676 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008637/0.4187, allocations: 1.216 MB / 481.1 MB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004824/0.4191, allocations: 166.1 kB / 481.3 MB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007132/0.4199, allocations: 0.6282 MB / 481.9 MB, free: 4.633 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4199, allocations: 0 / 481.9 MB, free: 4.633 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07664/0.4965, allocations: 32.49 MB / 0.5023 GB, free: 4.391 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.11/16.61, allocations: 8.188 kB / 0.5024 GB, free: 4.387 MB / 430.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)