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.001039/0.001039, allocations: 94.52 kB / 16.3 MB, free: 5.992 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.001074/0.001074, allocations: 184.7 kB / 17.2 MB, free: 5.914 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.317/1.317, allocations: 223.2 MB / 241.1 MB, free: 5.359 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003456/0.0003457, allocations: 7.562 kB / 300.8 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1082, allocations: 50.43 MB / 351.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.007012/0.1153, allocations: 6.762 MB / 358 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01339/0.1287, allocations: 9.916 MB / 367.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001353/0.1301, allocations: 19.88 kB / 367.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.1324, allocations: 0.6998 MB / 368.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004067/0.1365, allocations: 1.083 MB / 369.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001772/0.1383, allocations: 487.2 kB / 370.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004672/0.143, allocations: 2.479 MB / 372.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005333/0.1435, allocations: 306.7 kB / 373 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008248/0.1444, allocations: 0.4899 MB / 373.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006908/0.1451, allocations: 0.5514 MB / 374 MB, free: 4.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.151e-05/0.1452, allocations: 40 kB / 374 MB, free: 4.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001807/0.147, allocations: 0.7221 MB / 374.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001778/0.1472, allocations: 178.8 kB / 374.9 MB, free: 3.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000358/0.1476, allocations: 348.7 kB / 375.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.1491, allocations: 1.484 MB / 376.8 MB, free: 1.938 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1491, allocations: 0 / 376.8 MB, free: 1.938 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1491, allocations: 0 / 376.8 MB, free: 1.938 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.246e-05/0.1491, allocations: 0 / 376.8 MB, free: 1.938 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.00324/0.1523, allocations: 1.991 MB / 378.8 MB, free: 15.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.1524, allocations: 12.03 kB / 378.8 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.1526, allocations: 98.45 kB / 378.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000253/0.1528, allocations: 221.4 kB / 379.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001965/0.1548, allocations: 1.224 MB / 380.3 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.1548, allocations: 45.28 kB / 380.4 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.155, allocations: 56 kB / 380.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.1563, allocations: 0.7017 MB / 381.1 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.1563, allocations: 4 kB / 381.1 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.173e-05/0.1564, allocations: 20 kB / 381.1 MB, free: 13.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.1564, allocations: 19.98 kB / 381.2 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.1577, allocations: 0.6142 MB / 381.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004011/0.1617, allocations: 2.534 MB / 384.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.1631, allocations: 0.6661 MB / 385 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009598/0.1727, allocations: 7.547 MB / 392.5 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007908/0.1735, allocations: 398 kB / 392.9 MB, free: 368 kB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.715e-06/0.1735, allocations: 0 / 392.9 MB, free: 368 kB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005803/0.1793, allocations: 2.11 MB / 395 MB, free: 14.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.832e-05/0.1794, allocations: 93.55 kB / 395.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001832/0.1813, allocations: 1.419 MB / 396.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.859e-05/0.1813, allocations: 41.64 kB / 396.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006737/0.182, allocations: 0.8054 MB / 397.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.1822, allocations: 216.8 kB / 397.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-05/0.1823, allocations: 16 kB / 397.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1824, allocations: 337.9 kB / 397.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005978/0.183, allocations: 273.8 kB / 398.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007159/0.1837, allocations: 478.2 kB / 398.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006722/0.1844, allocations: 326.9 kB / 399 MB, free: 10.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1844, allocations: 0 / 399 MB, free: 10.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002022/0.1864, allocations: 1.179 MB / 400.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.1865, allocations: 11.98 kB / 400.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/0.1866, allocations: 72.7 kB / 400.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/0.1878, allocations: 0.7068 MB / 400.9 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.1883, allocations: 123.8 kB / 401.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001286/0.1896, allocations: 1.116 MB / 402.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006983/0.1903, allocations: 103.2 kB / 402.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.557e-05/0.1904, allocations: 40 kB / 402.3 MB, free: 6.695 MB / 334.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 ($PRE.VCC.counter,VCC.counter,$PRE.VEE.counter,VEE.counter,$whenCondition2,$whenCondition1,$PRE.VCC.T0,VCC.T0,$PRE.VCC.counter2,VCC.counter2,$PRE.VEE.T0,VEE.T0,$PRE.VEE.counter2,VEE.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 26} Notification: Performance of prepare postOptimizeDAE: time 0.0005057/0.1909, allocations: 285.7 kB / 402.6 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.1911, allocations: 201.6 kB / 402.8 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002357/0.1934, allocations: 1.158 MB / 404 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.1935, allocations: 4 kB / 404 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.1935, allocations: 4 kB / 404 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.1935, allocations: 0 / 404 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.1946, allocations: 0.9717 MB / 404.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.495e-05/0.1947, allocations: 67.98 kB / 405 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003486/0.1951, allocations: 71.94 kB / 405.1 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.1962, allocations: 0.6671 MB / 405.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.1962, allocations: 20 kB / 405.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001241/0.1975, allocations: 1.08 MB / 406.8 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1975, allocations: 3.938 kB / 406.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.2001, allocations: 1.421 MB / 408.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004956/0.2006, allocations: 282.6 kB / 408.5 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.2007, allocations: 12 kB / 408.6 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.2012, allocations: 43.95 kB / 408.6 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.2014, allocations: 56.36 kB / 408.7 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.977e-05/0.2014, allocations: 23.94 kB / 408.7 MB, free: 196 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001305/0.2027, allocations: 0.9293 MB / 409.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2027, allocations: 0 / 409.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001035/0.2038, allocations: 435.4 kB / 410 MB, free: 14.81 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.003569/0.2074, allocations: 2.305 MB / 412.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00209/0.2095, allocations: 0.9012 MB / 413.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2095, allocations: 4 kB / 413.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.2106, allocations: 0.541 MB / 413.8 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008774/0.2115, allocations: 201.4 kB / 414 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1757/0.3872, allocations: 13.64 MB / 427.6 MB, free: 66.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009762/0.3882, allocations: 1.252 MB / 428.9 MB, free: 65.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000722/0.389, allocations: 161.7 kB / 429 MB, free: 65.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006314/0.3896, allocations: 0.624 MB / 429.7 MB, free: 65.77 MB / 350.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3896, allocations: 0 / 429.7 MB, free: 65.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0468/0.4364, allocations: 29.75 MB / 459.4 MB, free: 45.27 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.4366, allocations: 228.4 kB / 459.6 MB, free: 45.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.831/3.267, allocations: 4 kB / 459.6 MB, free: 45.03 MB / 350.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/linux/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)