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.00148/0.00148, allocations: 107.8 kB / 16.92 MB, free: 5.754 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.001731/0.001731, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.371/1.371, allocations: 222.9 MB / 241.5 MB, free: 15.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001073, allocations: 46.48 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0912/0.09229, allocations: 49.44 MB / 350.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009302/0.1016, allocations: 8.309 MB / 358.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01508/0.1168, allocations: 11.3 MB / 369.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001811/0.1186, allocations: 19.88 kB / 369.8 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1718/0.2905, allocations: 0.8337 MB / 370.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006098/0.2966, allocations: 1.223 MB / 371.8 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002659/0.2993, allocations: 0.7034 MB / 372.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005154/0.3045, allocations: 2.676 MB / 375.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008522/0.3054, allocations: 348.8 kB / 375.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001587/0.307, allocations: 0.5443 MB / 376.1 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001402/0.3084, allocations: 0.6223 MB / 376.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004435/0.3088, allocations: 66.69 kB / 376.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0035/0.3124, allocations: 0.7829 MB / 377.6 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003924/0.3128, allocations: 215.2 kB / 377.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001235/0.314, allocations: 0.7703 MB / 378.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003046/0.3171, allocations: 2.103 MB / 380.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3171, allocations: 1.031 kB / 380.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3171, allocations: 0 / 380.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.786e-05/0.3171, allocations: 0 / 380.7 MB, free: 8.23 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.003685/0.3208, allocations: 2.209 MB / 382.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3209, allocations: 10.34 kB / 382.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.321, allocations: 105.5 kB / 383 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002931/0.3213, allocations: 225.6 kB / 383.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/0.3229, allocations: 1.302 MB / 384.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.323, allocations: 39.03 kB / 384.5 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-05/0.3231, allocations: 62.55 kB / 384.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.3243, allocations: 0.6941 MB / 385.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.3243, allocations: 0.5156 kB / 385.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.943e-05/0.3244, allocations: 21.81 kB / 385.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.272e-05/0.3244, allocations: 16.52 kB / 385.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.3257, allocations: 0.5731 MB / 385.9 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00324/0.329, allocations: 2.515 MB / 388.4 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.3301, allocations: 0.6295 MB / 389.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008038/0.3309, allocations: 0.5336 MB / 389.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008347/0.3393, allocations: 7.512 MB / 397.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008378/0.3402, allocations: 383.5 kB / 397.5 MB, free: 12.15 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.355e-06/0.3402, allocations: 0 / 397.5 MB, free: 12.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005607/0.3458, allocations: 2.076 MB / 399.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.3459, allocations: 88.39 kB / 399.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/0.3476, allocations: 1.435 MB / 401.1 MB, free: 10.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.386e-05/0.3476, allocations: 36.83 kB / 401.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006343/0.3483, allocations: 0.8006 MB / 401.9 MB, free: 9.402 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.3485, allocations: 231.7 kB / 402.1 MB, free: 9.203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.3487, allocations: 139.3 kB / 402.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3488, allocations: 337.8 kB / 402.6 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000577/0.3494, allocations: 250.5 kB / 402.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006807/0.3501, allocations: 458.8 kB / 403.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.3514, allocations: 0.7384 MB / 404 MB, free: 7.445 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.3514, allocations: 0 / 404 MB, free: 7.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002136/0.3535, allocations: 1.14 MB / 405.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3536, allocations: 8 kB / 405.2 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/0.3537, allocations: 75.98 kB / 405.3 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/0.3548, allocations: 0.6917 MB / 406 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004659/0.3553, allocations: 111.8 kB / 406.1 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.3566, allocations: 1.132 MB / 407.2 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00084/0.3575, allocations: 87.3 kB / 407.3 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.031e-05/0.3575, allocations: 36 kB / 407.3 MB, free: 4.125 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.0004854/0.358, allocations: 290.8 kB / 407.6 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.3583, allocations: 197.7 kB / 407.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002298/0.3606, allocations: 1.088 MB / 408.9 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.3606, allocations: 8 kB / 408.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3606, allocations: 4 kB / 408.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3606, allocations: 3.938 kB / 408.9 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.3618, allocations: 0.9764 MB / 409.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.546e-05/0.3619, allocations: 71.98 kB / 409.9 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003406/0.3623, allocations: 53.02 kB / 410 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001048/0.3633, allocations: 0.6711 MB / 410.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.3634, allocations: 15.98 kB / 410.7 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.3646, allocations: 1.087 MB / 411.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3646, allocations: 11.88 kB / 411.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/0.3672, allocations: 1.347 MB / 413.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004912/0.3677, allocations: 282.6 kB / 413.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00017/0.3679, allocations: 12.86 kB / 413.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000477/0.3683, allocations: 39.91 kB / 413.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.3685, allocations: 48.38 kB / 413.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.496e-05/0.3686, allocations: 27.98 kB / 413.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001242/0.3698, allocations: 0.9488 MB / 414.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3698, allocations: 0 / 414.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009684/0.3708, allocations: 423.4 kB / 414.9 MB, free: 12.39 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.003439/0.3742, allocations: 2.28 MB / 417.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002059/0.3763, allocations: 0.869 MB / 418 MB, free: 9.242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3763, allocations: 8.125 kB / 418 MB, free: 9.234 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.3775, allocations: 0.5174 MB / 418.6 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.3787, allocations: 223.1 kB / 418.8 MB, free: 8.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01683/0.3956, allocations: 12.01 MB / 430.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006645/0.3963, allocations: 1.216 MB / 432 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005656/0.3969, allocations: 166 kB / 432.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006442/0.3975, allocations: 0.6282 MB / 432.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3975, allocations: 0 / 432.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06549/0.463, allocations: 32.08 MB / 464.9 MB, free: 9.719 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.49, allocations: 7.938 kB / 464.9 MB, free: 9.711 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)