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.001575/0.001575, allocations: 101.8 kB / 16.62 MB, free: 6.809 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.001437/0.001437, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.259/1.259, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 47.17 kB / 300.2 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1025, allocations: 49.45 MB / 349.7 MB, free: 4.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.008833/0.1114, allocations: 8.266 MB / 358 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.012/0.1235, allocations: 11.2 MB / 369.1 MB, free: 1.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008473/0.1244, allocations: 15.94 kB / 369.2 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001682/0.1261, allocations: 0.7599 MB / 369.9 MB, free: 364 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1387/0.2648, allocations: 1.022 MB / 370.9 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.2665, allocations: 0.6096 MB / 371.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003471/0.27, allocations: 2.687 MB / 374.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004375/0.2704, allocations: 361.9 kB / 374.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007843/0.2712, allocations: 0.5504 MB / 375.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005411/0.2718, allocations: 0.6182 MB / 375.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.2719, allocations: 67.44 kB / 375.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001524/0.2734, allocations: 0.7871 MB / 376.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.2736, allocations: 219.7 kB / 376.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006285/0.2742, allocations: 0.7654 MB / 377.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002295/0.2765, allocations: 2.102 MB / 379.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2765, allocations: 1.125 kB / 379.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2765, allocations: 0 / 379.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.937e-05/0.2766, allocations: 0 / 379.7 MB, free: 8.16 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.00333/0.2799, allocations: 2.211 MB / 381.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.28, allocations: 10.34 kB / 381.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.2801, allocations: 101.4 kB / 382 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000256/0.2804, allocations: 221.4 kB / 382.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001674/0.282, allocations: 1.304 MB / 383.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.2821, allocations: 37.44 kB / 383.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.76e-05/0.2822, allocations: 61.5 kB / 383.6 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.2834, allocations: 0.6897 MB / 384.3 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.2834, allocations: 2.234 kB / 384.3 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.81e-05/0.2835, allocations: 20.44 kB / 384.3 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.083e-05/0.2835, allocations: 20.95 kB / 384.4 MB, free: 6.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.2846, allocations: 0.5705 MB / 384.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002967/0.2876, allocations: 2.518 MB / 387.5 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.2886, allocations: 0.6283 MB / 388.1 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007327/0.2894, allocations: 0.5355 MB / 388.6 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007032/0.2964, allocations: 7.501 MB / 396.1 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000736/0.2972, allocations: 379.9 kB / 396.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.285e-06/0.2972, allocations: 0 / 396.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005359/0.3026, allocations: 2.081 MB / 398.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.3026, allocations: 83.92 kB / 398.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001425/0.3041, allocations: 1.439 MB / 400.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.22e-05/0.3041, allocations: 36.83 kB / 400.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005751/0.3047, allocations: 0.8083 MB / 400.9 MB, free: 10.08 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.3049, allocations: 223.2 kB / 401.2 MB, free: 9.891 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.3051, allocations: 137.4 kB / 401.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3052, allocations: 335.9 kB / 401.6 MB, free: 9.484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000535/0.3057, allocations: 253.5 kB / 401.9 MB, free: 9.367 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006409/0.3064, allocations: 463.6 kB / 402.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.3076, allocations: 0.7291 MB / 403 MB, free: 8.449 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.3076, allocations: 4 kB / 403.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002009/0.3096, allocations: 1.139 MB / 404.2 MB, free: 7.297 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3096, allocations: 8 kB / 404.2 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/0.3097, allocations: 79.94 kB / 404.3 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/0.3109, allocations: 0.6882 MB / 405 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004324/0.3113, allocations: 115.8 kB / 405.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.3126, allocations: 1.128 MB / 406.2 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007741/0.3134, allocations: 95.23 kB / 406.3 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.535e-05/0.3135, allocations: 36 kB / 406.3 MB, free: 5.121 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.0005419/0.314, allocations: 285.7 kB / 406.6 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002969/0.3143, allocations: 205.6 kB / 406.8 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002344/0.3167, allocations: 1.09 MB / 407.9 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.3167, allocations: 4 kB / 407.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3167, allocations: 0 / 407.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3167, allocations: 3.938 kB / 407.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.3187, allocations: 0.9861 MB / 408.9 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001/0.3188, allocations: 68 kB / 409 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.3191, allocations: 59.94 kB / 409 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.3202, allocations: 0.6672 MB / 409.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.295e-05/0.3203, allocations: 27.98 kB / 409.7 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.3216, allocations: 1.081 MB / 410.8 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3216, allocations: 0 / 410.8 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.3242, allocations: 1.351 MB / 412.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005127/0.3247, allocations: 278.7 kB / 412.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002849/0.325, allocations: 15.98 kB / 412.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/0.3256, allocations: 39.89 kB / 412.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.3258, allocations: 52.31 kB / 412.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.604e-05/0.3258, allocations: 23.98 kB / 412.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00135/0.3272, allocations: 0.9449 MB / 413.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3272, allocations: 3.938 kB / 413.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00119/0.3284, allocations: 431.4 kB / 413.9 MB, free: 13.37 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.003813/0.3322, allocations: 2.28 MB / 416.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.3344, allocations: 0.8738 MB / 417.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3344, allocations: 0 / 417.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.3355, allocations: 0.5175 MB / 417.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/0.3372, allocations: 212.2 kB / 417.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02532/0.3626, allocations: 12.46 MB / 430.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009931/0.3636, allocations: 1.22 MB / 431.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006019/0.3642, allocations: 166 kB / 431.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007477/0.365, allocations: 0.6282 MB / 432.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of SimCode: time 1.332e-06/0.365, allocations: 0 / 432.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.06/1.425, allocations: 31.74 MB / 464 MB, free: 10.67 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002424/1.426, allocations: 258.3 kB / 464.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.535/4.961, allocations: 0 / 464.3 MB, free: 10.41 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)