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.001209/0.001208, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.001326/0.001326, allocations: 191 kB / 18.66 MB, free: 4.445 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.383/1.383, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001285/0.001285, allocations: 55.91 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0892/0.09049, allocations: 46.61 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.1858/0.2763, allocations: 8.182 MB / 382.8 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.2884, allocations: 10.96 MB / 393.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001966/0.2905, allocations: 55.91 kB / 393.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002686/0.2932, allocations: 0.8158 MB / 394.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005962/0.2992, allocations: 1.215 MB / 395.9 MB, free: 244 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003318/0.3026, allocations: 0.6935 MB / 396.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005421/0.308, allocations: 2.649 MB / 399.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005939/0.3086, allocations: 350.2 kB / 399.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.3097, allocations: 0.5352 MB / 400.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008742/0.3106, allocations: 0.6127 MB / 400.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.3107, allocations: 70.88 kB / 400.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002164/0.3129, allocations: 0.7095 MB / 401.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.3132, allocations: 218.7 kB / 401.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009586/0.3141, allocations: 0.7717 MB / 402.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003315/0.3175, allocations: 2.118 MB / 404.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.3175, allocations: 1 kB / 404.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3175, allocations: 0 / 404.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.4e-05/0.3176, allocations: 0 / 404.6 MB, free: 12.45 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.004136/0.3217, allocations: 2.214 MB / 406.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3218, allocations: 11.94 kB / 406.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001548/0.322, allocations: 104.9 kB / 406.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003883/0.3223, allocations: 218.5 kB / 407.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.3244, allocations: 1.304 MB / 408.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.07e-05/0.3245, allocations: 39.64 kB / 408.5 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.3246, allocations: 56.19 kB / 408.5 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.3259, allocations: 0.6949 MB / 409.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.326, allocations: 0 / 409.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.99e-05/0.3261, allocations: 21.16 kB / 409.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.673e-05/0.3261, allocations: 21.02 kB / 409.3 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.3274, allocations: 0.5661 MB / 409.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003947/0.3313, allocations: 2.519 MB / 412.3 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.3326, allocations: 0.6215 MB / 413 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008854/0.3335, allocations: 0.5367 MB / 413.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009387/0.3429, allocations: 7.486 MB / 421 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008707/0.3438, allocations: 379.5 kB / 421.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.647e-06/0.3438, allocations: 0 / 421.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.005746/0.3496, allocations: 2.095 MB / 423.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/0.3496, allocations: 85.55 kB / 423.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.3515, allocations: 1.435 MB / 425 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.874e-05/0.3516, allocations: 33.7 kB / 425 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006655/0.3522, allocations: 0.8016 MB / 425.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.3525, allocations: 228.7 kB / 426 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/0.3527, allocations: 138.6 kB / 426.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.3528, allocations: 341.9 kB / 426.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005788/0.3534, allocations: 249.8 kB / 426.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007155/0.3541, allocations: 462.2 kB / 427.2 MB, free: 9.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.3554, allocations: 0.7333 MB / 427.9 MB, free: 8.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3554, allocations: 0 / 427.9 MB, free: 8.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002218/0.3576, allocations: 1.136 MB / 429.1 MB, free: 7.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.3577, allocations: 11.98 kB / 429.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/0.3578, allocations: 72 kB / 429.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.359, allocations: 0.6995 MB / 429.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.3594, allocations: 115.7 kB / 430 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.3607, allocations: 1.124 MB / 431.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008878/0.3616, allocations: 85.94 kB / 431.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.999e-05/0.3617, allocations: 40 kB / 431.2 MB, free: 5.488 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.0005363/0.3622, allocations: 297.6 kB / 431.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002351/0.3625, allocations: 201.6 kB / 431.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002145/0.3646, allocations: 1.088 MB / 432.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.3647, allocations: 8 kB / 432.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3647, allocations: 0 / 432.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.3647, allocations: 7.984 kB / 432.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.3659, allocations: 0.9833 MB / 433.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.717e-05/0.366, allocations: 68 kB / 433.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003441/0.3664, allocations: 59.88 kB / 433.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/0.3674, allocations: 0.6672 MB / 434.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.127e-05/0.3675, allocations: 24.81 kB / 434.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.3687, allocations: 1.092 MB / 435.7 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3687, allocations: 7.938 kB / 435.7 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002518/0.3712, allocations: 1.339 MB / 437 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004994/0.3717, allocations: 286.5 kB / 437.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001805/0.3719, allocations: 14.12 kB / 437.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004622/0.3724, allocations: 39.95 kB / 437.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.3725, allocations: 48.38 kB / 437.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.158e-05/0.3726, allocations: 24 kB / 437.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001246/0.3739, allocations: 0.9488 MB / 438.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.532e-06/0.3739, allocations: 0 / 438.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001007/0.3749, allocations: 423.3 kB / 438.8 MB, free: 13.71 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.003504/0.3784, allocations: 2.27 MB / 441.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001943/0.3804, allocations: 0.8545 MB / 441.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3804, allocations: 128 / 441.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.3815, allocations: 0.5291 MB / 442.5 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.3825, allocations: 186.5 kB / 442.6 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01702/0.3996, allocations: 10.7 MB / 453.3 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008394/0.4005, allocations: 1.216 MB / 454.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005448/0.401, allocations: 162.1 kB / 454.7 MB, free: 13.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007207/0.4018, allocations: 0.6282 MB / 455.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4018, allocations: 0 / 455.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07296/0.4747, allocations: 33.18 MB / 488.5 MB, free: 11.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.88/15.35, allocations: 8 kB / 488.5 MB, free: 11.46 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)