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.001006/0.001009, allocations: 101.2 kB / 16.5 MB, free: 6.641 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.001144/0.001144, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.312/1.312, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 50.8 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1071, allocations: 49.44 MB / 349.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.008458/0.1156, allocations: 8.285 MB / 357.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01391/0.1295, allocations: 11.51 MB / 369.3 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.131, allocations: 15.94 kB / 369.3 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002261/0.1333, allocations: 0.7677 MB / 370.1 MB, free: 108 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2076/0.341, allocations: 0.9835 MB / 371.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002583/0.3436, allocations: 0.5157 MB / 371.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006095/0.3497, allocations: 2.595 MB / 374.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005486/0.3503, allocations: 321.9 kB / 374.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009782/0.3513, allocations: 0.523 MB / 375 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007328/0.352, allocations: 0.6051 MB / 375.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.3521, allocations: 46 kB / 375.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002896/0.3551, allocations: 0.7666 MB / 376.4 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000239/0.3553, allocations: 192.6 kB / 376.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001071/0.3564, allocations: 0.753 MB / 377.4 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002797/0.3592, allocations: 2.059 MB / 379.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3592, allocations: 0 / 379.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3592, allocations: 4 kB / 379.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.646e-05/0.3592, allocations: 0 / 379.4 MB, free: 8.441 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.003597/0.3628, allocations: 2.21 MB / 381.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.3629, allocations: 10.25 kB / 381.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000137/0.363, allocations: 103.9 kB / 381.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002756/0.3633, allocations: 221.8 kB / 382 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001833/0.3652, allocations: 1.304 MB / 383.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.3652, allocations: 41.19 kB / 383.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.3653, allocations: 59 kB / 383.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.3667, allocations: 0.6851 MB / 384.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.3667, allocations: 0 / 384.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.187e-05/0.3668, allocations: 27.05 kB / 384.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.3668, allocations: 25.42 kB / 384.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.3682, allocations: 0.5633 MB / 384.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003767/0.3719, allocations: 2.514 MB / 387.2 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.3731, allocations: 0.6259 MB / 387.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008777/0.374, allocations: 0.5343 MB / 388.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00842/0.3824, allocations: 7.504 MB / 395.9 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008763/0.3833, allocations: 387.2 kB / 396.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.605e-06/0.3834, allocations: 0 / 396.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005754/0.3891, allocations: 2.076 MB / 398.3 MB, free: 11.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.611e-05/0.3892, allocations: 90.42 kB / 398.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.391, allocations: 1.435 MB / 399.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.391, allocations: 35.89 kB / 399.9 MB, free: 10.81 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006776/0.3917, allocations: 0.7999 MB / 400.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.3919, allocations: 225.4 kB / 400.9 MB, free: 9.906 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/0.3921, allocations: 142.3 kB / 401 MB, free: 9.824 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3922, allocations: 339.9 kB / 401.4 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005753/0.3928, allocations: 251.8 kB / 401.6 MB, free: 9.371 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007095/0.3935, allocations: 458.8 kB / 402 MB, free: 9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.3947, allocations: 0.729 MB / 402.8 MB, free: 8.477 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3948, allocations: 6.625 kB / 402.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001985/0.3968, allocations: 1.137 MB / 403.9 MB, free: 7.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3968, allocations: 12.03 kB / 403.9 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/0.3969, allocations: 72 kB / 404 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.3982, allocations: 0.6953 MB / 404.7 MB, free: 6.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004504/0.3987, allocations: 113.6 kB / 404.8 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.4, allocations: 1.128 MB / 405.9 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006999/0.4007, allocations: 83.31 kB / 406 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.67e-05/0.4008, allocations: 43.98 kB / 406.1 MB, free: 5.305 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.0005659/0.4014, allocations: 289.7 kB / 406.3 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/0.4018, allocations: 197.7 kB / 406.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002418/0.4042, allocations: 1.095 MB / 407.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.4042, allocations: 7.984 kB / 407.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4042, allocations: 0 / 407.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.4042, allocations: 7.938 kB / 407.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/0.4057, allocations: 0.9777 MB / 408.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001656/0.4058, allocations: 68 kB / 408.7 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/0.4062, allocations: 51.94 kB / 408.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/0.4073, allocations: 0.675 MB / 409.4 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.303e-05/0.4073, allocations: 21.3 kB / 409.4 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.4085, allocations: 1.088 MB / 410.5 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4086, allocations: 0 / 410.5 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.4111, allocations: 1.35 MB / 411.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000384/0.4115, allocations: 278.6 kB / 412.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.4116, allocations: 12 kB / 412.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004357/0.4121, allocations: 39.89 kB / 412.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.4122, allocations: 52.38 kB / 412.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-05/0.4123, allocations: 23.98 kB / 412.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001117/0.4134, allocations: 0.9488 MB / 413.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.573e-06/0.4134, allocations: 0 / 413.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001018/0.4144, allocations: 431.3 kB / 413.6 MB, free: 13.56 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.003647/0.4181, allocations: 2.288 MB / 415.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.42, allocations: 0.8531 MB / 416.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.42, allocations: 0 / 416.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.4212, allocations: 0.518 MB / 417.3 MB, free: 9.902 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.4222, allocations: 202.9 kB / 417.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02284/0.445, allocations: 12.45 MB / 429.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007959/0.4459, allocations: 1.216 MB / 431.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005732/0.4465, allocations: 162.1 kB / 431.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006592/0.4471, allocations: 0.6204 MB / 431.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4472, allocations: 0 / 431.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08316/0.5303, allocations: 31.05 MB / 463 MB, free: 11.59 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002389/0.5306, allocations: 250.9 kB / 463.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.782/3.312, allocations: 0 / 463.2 MB, free: 11.33 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)