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.001413/0.001413, allocations: 106.9 kB / 17.58 MB, free: 5.559 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.001796/0.001796, allocations: 192 kB / 18.51 MB, free: 4.641 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.33/1.33, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002316/0.002317, allocations: 51.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1139, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.008041/0.122, allocations: 8.161 MB / 335.5 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.1337, allocations: 10.96 MB / 346.5 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009407/0.1347, allocations: 15.94 kB / 346.5 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001962/0.1367, allocations: 0.825 MB / 347.3 MB, free: 328 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004635/0.1413, allocations: 1.207 MB / 348.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002066/0.1434, allocations: 0.6973 MB / 349.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003882/0.1474, allocations: 2.635 MB / 351.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000491/0.1479, allocations: 357.7 kB / 352.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005755/0.1485, allocations: 0.5169 MB / 352.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000582/0.149, allocations: 0.6133 MB / 353.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001175/0.1492, allocations: 68 kB / 353.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001505/0.1507, allocations: 0.7104 MB / 354.1 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001763/0.1509, allocations: 222.7 kB / 354.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006317/0.1515, allocations: 0.7686 MB / 355.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001964/0.1535, allocations: 2.102 MB / 357.2 MB, free: 6.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1535, allocations: 0 / 357.2 MB, free: 6.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1535, allocations: 0 / 357.2 MB, free: 6.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.746e-05/0.1535, allocations: 0 / 357.2 MB, free: 6.371 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.002953/0.1565, allocations: 2.208 MB / 359.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1565, allocations: 12.03 kB / 359.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000109/0.1567, allocations: 106.7 kB / 359.6 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002478/0.1569, allocations: 222.3 kB / 359.8 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001619/0.1585, allocations: 1.308 MB / 361.1 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.278e-05/0.1586, allocations: 37.31 kB / 361.1 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.1587, allocations: 56 kB / 361.2 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.1599, allocations: 0.69 MB / 361.9 MB, free: 1.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.1599, allocations: 4 kB / 361.9 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.686e-05/0.16, allocations: 20 kB / 361.9 MB, free: 1.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.16, allocations: 19.98 kB / 361.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.1613, allocations: 0.5711 MB / 362.5 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003311/0.1646, allocations: 2.53 MB / 365 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.1658, allocations: 0.627 MB / 365.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008346/0.1666, allocations: 0.5337 MB / 366.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00791/0.1745, allocations: 7.492 MB / 373.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007758/0.1753, allocations: 385.9 kB / 374 MB, free: 4.113 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.575e-06/0.1754, allocations: 4 kB / 374 MB, free: 4.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005419/0.1808, allocations: 2.071 MB / 376.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.1809, allocations: 89.53 kB / 376.2 MB, free: 1.902 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/0.1825, allocations: 1.435 MB / 377.6 MB, free: 440 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.407e-05/0.1825, allocations: 37.7 kB / 377.7 MB, free: 396 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1283/0.3108, allocations: 0.7957 MB / 378.5 MB, free: 54.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/0.3112, allocations: 226.3 kB / 378.7 MB, free: 54.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002248/0.3114, allocations: 141 kB / 378.8 MB, free: 54.78 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.682e-05/0.3115, allocations: 337.9 kB / 379.2 MB, free: 54.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000617/0.3121, allocations: 253.8 kB / 379.4 MB, free: 54.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006545/0.3128, allocations: 460.6 kB / 379.9 MB, free: 54.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/0.314, allocations: 0.7352 MB / 380.6 MB, free: 53.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3141, allocations: 1.594 kB / 380.6 MB, free: 53.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002242/0.3163, allocations: 1.131 MB / 381.7 MB, free: 53.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3163, allocations: 7.75 kB / 381.7 MB, free: 53.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000113/0.3165, allocations: 76.95 kB / 381.8 MB, free: 53.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.3176, allocations: 0.6985 MB / 382.5 MB, free: 53.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004778/0.3181, allocations: 112.1 kB / 382.6 MB, free: 53.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.3194, allocations: 1.127 MB / 383.7 MB, free: 52.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007938/0.3202, allocations: 83.05 kB / 383.8 MB, free: 52.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.25e-05/0.3203, allocations: 45.06 kB / 383.9 MB, free: 52.41 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.0005606/0.3208, allocations: 286.8 kB / 384.1 MB, free: 52.19 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002493/0.3211, allocations: 202.3 kB / 384.3 MB, free: 52.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002279/0.3234, allocations: 1.088 MB / 385.4 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.3234, allocations: 5.719 kB / 385.4 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.3234, allocations: 0 / 385.4 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.3234, allocations: 2.859 kB / 385.4 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.3247, allocations: 0.9834 MB / 386.4 MB, free: 51.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001174/0.3248, allocations: 72.86 kB / 386.5 MB, free: 51.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003652/0.3252, allocations: 53.92 kB / 386.5 MB, free: 51.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/0.3264, allocations: 0.6734 MB / 387.2 MB, free: 51.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.486e-05/0.3265, allocations: 21.5 kB / 387.2 MB, free: 51.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/0.3276, allocations: 1.089 MB / 388.3 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3277, allocations: 6.047 kB / 388.3 MB, free: 50.26 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.3303, allocations: 1.354 MB / 389.7 MB, free: 49.64 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005035/0.3308, allocations: 282.8 kB / 390 MB, free: 49.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/0.331, allocations: 11.95 kB / 390 MB, free: 49.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005029/0.3315, allocations: 33.44 kB / 390 MB, free: 49.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.3317, allocations: 52.08 kB / 390.1 MB, free: 49.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.652e-05/0.3317, allocations: 26.05 kB / 390.1 MB, free: 49.4 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001263/0.333, allocations: 0.9481 MB / 391 MB, free: 49.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.333, allocations: 4 kB / 391 MB, free: 49.01 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009401/0.3339, allocations: 431.7 kB / 391.5 MB, free: 48.96 MB / 318.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.003459/0.3374, allocations: 2.266 MB / 393.7 MB, free: 47.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.3395, allocations: 0.8671 MB / 394.6 MB, free: 47.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3396, allocations: 0 / 394.6 MB, free: 47.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.3406, allocations: 0.5324 MB / 395.1 MB, free: 47.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008197/0.3415, allocations: 187.6 kB / 395.3 MB, free: 47.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01315/0.3546, allocations: 12 MB / 407.3 MB, free: 36.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.3552, allocations: 1.22 MB / 408.5 MB, free: 34.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005215/0.3558, allocations: 162.3 kB / 408.7 MB, free: 34.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/0.3562, allocations: 0.6243 MB / 409.3 MB, free: 34.02 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3562, allocations: 0 / 409.3 MB, free: 34.02 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05117/0.4074, allocations: 32.05 MB / 441.4 MB, free: 1.879 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.88, allocations: 8.688 kB / 441.4 MB, free: 1.871 MB / 318.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)