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.001549/0.001549, allocations: 114.9 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001477/0.001477, allocations: 205.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2741, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.008862/0.283, allocations: 8.331 MB / 417.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01431/0.2973, allocations: 11.33 MB / 428.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.2988, allocations: 55.56 kB / 428.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00272/0.3016, allocations: 0.842 MB / 429.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004946/0.3066, allocations: 1.235 MB / 430.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002418/0.309, allocations: 0.7012 MB / 431.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004868/0.3139, allocations: 2.712 MB / 434 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007545/0.3147, allocations: 353.7 kB / 434.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001108/0.3159, allocations: 0.5598 MB / 434.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001178/0.3171, allocations: 0.6289 MB / 435.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003282/0.3174, allocations: 68 kB / 435.6 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002752/0.3202, allocations: 0.7922 MB / 436.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003295/0.3205, allocations: 214.7 kB / 436.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.3217, allocations: 0.7686 MB / 437.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003584/0.3253, allocations: 2.129 MB / 439.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3254, allocations: 4 kB / 439.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3254, allocations: 0 / 439.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.968e-05/0.3254, allocations: 0 / 439.5 MB, free: 2.688 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.003888/0.3293, allocations: 2.215 MB / 441.7 MB, free: 416 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.3294, allocations: 12.03 kB / 441.7 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001504/0.3296, allocations: 102.7 kB / 441.8 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005113/0.3301, allocations: 238.3 kB / 442 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00217/0.3323, allocations: 1.308 MB / 443.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.038e-05/0.3323, allocations: 41.31 kB / 443.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.3325, allocations: 59.98 kB / 443.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.3338, allocations: 0.69 MB / 444.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.3338, allocations: 0 / 444.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.899e-05/0.3339, allocations: 20 kB / 444.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/0.3339, allocations: 16 kB / 444.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.3352, allocations: 0.575 MB / 444.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003952/0.3391, allocations: 2.499 MB / 447.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.3404, allocations: 0.6232 MB / 447.9 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008514/0.3412, allocations: 0.5377 MB / 448.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01063/0.3519, allocations: 5.899 MB / 454.3 MB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.3533, allocations: 403.3 kB / 454.7 MB, free: 2.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 5.53e-06/0.3533, allocations: 0 / 454.7 MB, free: 2.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.01137/0.3647, allocations: 2.421 MB / 457.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.3648, allocations: 93.67 kB / 457.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003576/0.3685, allocations: 1.423 MB / 458.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001588/0.3687, allocations: 37.7 kB / 458.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/0.3697, allocations: 0.7784 MB / 459.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004351/0.3702, allocations: 256.4 kB / 459.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004015/0.3706, allocations: 138.6 kB / 459.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.3708, allocations: 337.9 kB / 460.2 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.3718, allocations: 261.8 kB / 460.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.373, allocations: 442.1 kB / 460.8 MB, free: 12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005191/0.3782, allocations: 1.556 MB / 462.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.589e-05/0.3783, allocations: 4 kB / 462.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.003661/0.3819, allocations: 1.156 MB / 463.6 MB, free: 9.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.414e-05/0.382, allocations: 8 kB / 463.6 MB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001781/0.3822, allocations: 79.98 kB / 463.6 MB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001536/0.3837, allocations: 0.6097 MB / 464.3 MB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008267/0.3846, allocations: 135.8 kB / 464.4 MB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.3867, allocations: 1.526 MB / 465.9 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.388, allocations: 91.23 kB / 466 MB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.3881, allocations: 32 kB / 466 MB, free: 6.672 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.0009525/0.3891, allocations: 301.6 kB / 466.3 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005432/0.3897, allocations: 197.7 kB / 466.5 MB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003717/0.3934, allocations: 1.169 MB / 467.7 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/0.3934, allocations: 8 kB / 467.7 MB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.3935, allocations: 0 / 467.7 MB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.3935, allocations: 11.97 kB / 467.7 MB, free: 4.969 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002056/0.3955, allocations: 1.006 MB / 468.7 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000158/0.3957, allocations: 79.98 kB / 468.8 MB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005641/0.3963, allocations: 59.94 kB / 468.9 MB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001657/0.398, allocations: 0.6553 MB / 469.5 MB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.114e-05/0.3981, allocations: 23.98 kB / 469.5 MB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.4001, allocations: 1.141 MB / 470.7 MB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4001, allocations: 0 / 470.7 MB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003125/0.4032, allocations: 1.436 MB / 472.1 MB, free: 476 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007297/0.404, allocations: 282.6 kB / 472.4 MB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004039/0.4044, allocations: 15.94 kB / 472.4 MB, free: 156 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008001/0.4052, allocations: 35.95 kB / 472.4 MB, free: 120 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.4054, allocations: 52.5 kB / 472.5 MB, free: 64 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.961e-05/0.4055, allocations: 31.92 kB / 472.5 MB, free: 32 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002361/0.4079, allocations: 0.9368 MB / 473.5 MB, free: 15.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4079, allocations: 4 kB / 473.5 MB, free: 15.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00162/0.4095, allocations: 435.4 kB / 473.9 MB, free: 14.64 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.005696/0.4152, allocations: 2.363 MB / 476.3 MB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00309/0.4183, allocations: 0.8737 MB / 477.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4184, allocations: 128 / 477.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.4203, allocations: 0.5548 MB / 477.7 MB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001745/0.4221, allocations: 227 kB / 477.9 MB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02042/0.4425, allocations: 10.69 MB / 488.6 MB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008966/0.4434, allocations: 1.224 MB / 489.8 MB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005385/0.444, allocations: 170.1 kB / 490 MB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007615/0.4448, allocations: 0.6512 MB / 490.6 MB, free: 13.49 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4448, allocations: 0 / 490.6 MB, free: 13.49 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07312/0.5179, allocations: 33.77 MB / 0.5121 GB, free: 11.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.23/15.75, allocations: 3.938 kB / 0.5121 GB, free: 11.9 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