Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001954/0.001954, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002716/0.002716, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 67.88 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.3005, allocations: 50.55 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.01031/0.3108, allocations: 8.323 MB / 417.2 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01609/0.327, allocations: 11.34 MB / 428.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.3289, allocations: 55.56 kB / 428.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002661/0.3316, allocations: 0.8355 MB / 429.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00497/0.3366, allocations: 1.227 MB / 430.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0024/0.339, allocations: 0.7051 MB / 431.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005279/0.3443, allocations: 2.728 MB / 434 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007331/0.3451, allocations: 357.7 kB / 434.4 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001008/0.3461, allocations: 0.552 MB / 434.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009279/0.3471, allocations: 0.6211 MB / 435.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000176/0.3473, allocations: 64 kB / 435.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002167/0.3494, allocations: 0.7922 MB / 436.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002693/0.3497, allocations: 222.7 kB / 436.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.3509, allocations: 0.7647 MB / 437.4 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003505/0.3544, allocations: 2.147 MB / 439.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.3545, allocations: 4 kB / 439.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3545, allocations: 0 / 439.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.658e-05/0.3545, allocations: 0 / 439.6 MB, free: 2.578 MB / 350.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.003859/0.3584, allocations: 2.28 MB / 441.8 MB, free: 236 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.3585, allocations: 8.031 kB / 441.8 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001401/0.3586, allocations: 106.7 kB / 441.9 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005705/0.3592, allocations: 243.6 kB / 442.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/0.3613, allocations: 1.33 MB / 443.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.074e-05/0.3614, allocations: 37.31 kB / 443.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.3615, allocations: 56 kB / 443.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.3629, allocations: 0.6938 MB / 444.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.363, allocations: 0 / 444.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.129e-05/0.363, allocations: 24 kB / 444.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.527e-05/0.3631, allocations: 19.98 kB / 444.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.3645, allocations: 0.5634 MB / 444.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004258/0.3687, allocations: 2.519 MB / 447.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.3702, allocations: 0.6154 MB / 448 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.3712, allocations: 0.5453 MB / 448.6 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008544/0.3798, allocations: 5.903 MB / 454.5 MB, free: 2.531 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009213/0.3808, allocations: 399.4 kB / 454.9 MB, free: 2.133 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 4.107e-06/0.3808, allocations: 0 / 454.9 MB, free: 2.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.007678/0.3885, allocations: 2.434 MB / 457.3 MB, free: 15.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.047e-05/0.3886, allocations: 85.67 kB / 457.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002029/0.3906, allocations: 1.426 MB / 458.8 MB, free: 14.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.985e-05/0.3907, allocations: 33.7 kB / 458.9 MB, free: 14.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008179/0.3916, allocations: 0.7986 MB / 459.7 MB, free: 13.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003299/0.3919, allocations: 253.8 kB / 459.9 MB, free: 13.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002751/0.3922, allocations: 138.6 kB / 460 MB, free: 12.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.3924, allocations: 345.9 kB / 460.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007019/0.3931, allocations: 257.9 kB / 460.6 MB, free: 12.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008411/0.394, allocations: 446.1 kB / 461.1 MB, free: 11.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003708/0.3977, allocations: 1.556 MB / 462.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3977, allocations: 0 / 462.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002477/0.4002, allocations: 1.157 MB / 463.8 MB, free: 8.973 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.4002, allocations: 8 kB / 463.8 MB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/0.4004, allocations: 88.02 kB / 463.9 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/0.4015, allocations: 0.603 MB / 464.5 MB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006117/0.4021, allocations: 135.8 kB / 464.6 MB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.4038, allocations: 1.534 MB / 466.1 MB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007767/0.4046, allocations: 91.42 kB / 466.2 MB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-05/0.4047, allocations: 40 kB / 466.3 MB, free: 6.43 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: Q2.vbc:VARIABLE(start = 0.0 unit = "V" fixed = true ) type: Real Q2.vbx:VARIABLE(unit = "V" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,12), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0006398/0.4054, allocations: 305.6 kB / 466.6 MB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002883/0.4056, allocations: 206.7 kB / 466.8 MB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002609/0.4083, allocations: 1.157 MB / 467.9 MB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.639e-06/0.4083, allocations: 4 kB / 467.9 MB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4083, allocations: 0 / 467.9 MB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.4083, allocations: 3.984 kB / 467.9 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.4097, allocations: 1.01 MB / 468.9 MB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001122/0.4098, allocations: 72 kB / 469 MB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004243/0.4103, allocations: 67.88 kB / 469.1 MB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/0.4115, allocations: 0.6553 MB / 469.7 MB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-05/0.4116, allocations: 24 kB / 469.8 MB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0015/0.4131, allocations: 1.138 MB / 470.9 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.4132, allocations: 0 / 470.9 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003195/0.4164, allocations: 1.445 MB / 472.3 MB, free: 228 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000595/0.417, allocations: 295.9 kB / 472.6 MB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002062/0.4172, allocations: 23.67 kB / 472.7 MB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005077/0.4177, allocations: 35.97 kB / 472.7 MB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.4179, allocations: 52.48 kB / 472.7 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.901e-05/0.418, allocations: 24.12 kB / 472.8 MB, free: 15.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001525/0.4195, allocations: 0.9444 MB / 473.7 MB, free: 14.81 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4196, allocations: 0 / 473.7 MB, free: 14.81 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001197/0.4208, allocations: 442.9 kB / 474.1 MB, free: 14.38 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Q1.vbe,Q1.vbc,Q1.vbx,Q2.vbe,Q2.vbc,Q2.vbx) * 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 {(3,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004539/0.4253, allocations: 2.391 MB / 476.5 MB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002341/0.4277, allocations: 0.8775 MB / 477.4 MB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.4277, allocations: 0 / 477.4 MB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.4291, allocations: 0.547 MB / 478 MB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.4303, allocations: 223 kB / 478.2 MB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/0.4501, allocations: 10.76 MB / 488.9 MB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.4512, allocations: 1.216 MB / 490.2 MB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005959/0.4518, allocations: 166.1 kB / 490.3 MB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008996/0.4528, allocations: 0.6477 MB / 491 MB, free: 13.14 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4528, allocations: 3.938 kB / 491 MB, free: 13.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07979/0.5326, allocations: 33.09 MB / 0.5118 GB, free: 12.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.58/16.12, allocations: 3.75 kB / 0.5118 GB, free: 12.23 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.mat does not exist to compare? outputFormat=mat