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.001379/0.001379, allocations: 117.7 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.001687/0.001687, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2752, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009421/0.2846, allocations: 8.331 MB / 417.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.3, allocations: 11.33 MB / 428.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001776/0.3018, allocations: 59.5 kB / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002813/0.3047, allocations: 0.846 MB / 429.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005097/0.3098, allocations: 1.227 MB / 430.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002646/0.3125, allocations: 0.7051 MB / 431.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005186/0.3177, allocations: 2.72 MB / 434 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006941/0.3185, allocations: 353.7 kB / 434.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009164/0.3194, allocations: 0.5559 MB / 434.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009875/0.3204, allocations: 0.6211 MB / 435.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000237/0.3207, allocations: 68 kB / 435.6 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002302/0.323, allocations: 0.7883 MB / 436.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002791/0.3233, allocations: 226.6 kB / 436.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.3243, allocations: 0.7608 MB / 437.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003517/0.3279, allocations: 2.133 MB / 439.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.3279, allocations: 0 / 439.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3279, allocations: 0 / 439.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.254e-05/0.328, allocations: 0 / 439.5 MB, free: 2.66 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.004481/0.3325, allocations: 2.219 MB / 441.7 MB, free: 384 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.3326, allocations: 12.03 kB / 441.7 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001747/0.3328, allocations: 98.69 kB / 441.8 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005266/0.3333, allocations: 242.3 kB / 442 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002462/0.3358, allocations: 1.308 MB / 443.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.3358, allocations: 41.31 kB / 443.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.336, allocations: 52 kB / 443.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.3375, allocations: 0.69 MB / 444.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.3375, allocations: 0 / 444.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-05/0.3376, allocations: 24 kB / 444.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.415e-05/0.3376, allocations: 19.97 kB / 444.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.339, allocations: 0.5712 MB / 444.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004176/0.3432, allocations: 2.503 MB / 447.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.3444, allocations: 0.6193 MB / 447.9 MB, free: 9.961 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008644/0.3453, allocations: 0.5416 MB / 448.4 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006989/0.3523, allocations: 5.891 MB / 454.3 MB, free: 2.719 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008195/0.3531, allocations: 407.3 kB / 454.7 MB, free: 2.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 3.246e-06/0.3531, allocations: 0 / 454.7 MB, free: 2.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.006941/0.3601, allocations: 2.425 MB / 457.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.3602, allocations: 89.66 kB / 457.2 MB, free: 15.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/0.3619, allocations: 1.423 MB / 458.6 MB, free: 14.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.554e-05/0.362, allocations: 37.7 kB / 458.7 MB, free: 14.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005993/0.3626, allocations: 0.7862 MB / 459.4 MB, free: 13.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.3628, allocations: 240.5 kB / 459.7 MB, free: 13.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.363, allocations: 142.6 kB / 459.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3631, allocations: 341.9 kB / 460.2 MB, free: 12.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006002/0.3637, allocations: 261.8 kB / 460.4 MB, free: 12.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006879/0.3644, allocations: 442.1 kB / 460.8 MB, free: 11.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003285/0.3677, allocations: 1.556 MB / 462.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.3678, allocations: 4 kB / 462.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002154/0.3699, allocations: 1.152 MB / 463.6 MB, free: 9.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.37, allocations: 8 kB / 463.6 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.3701, allocations: 76.59 kB / 463.6 MB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009815/0.3711, allocations: 0.6135 MB / 464.3 MB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000566/0.3716, allocations: 131.8 kB / 464.4 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.373, allocations: 1.53 MB / 465.9 MB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006711/0.3736, allocations: 91.25 kB / 466 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.677e-05/0.3737, allocations: 35.98 kB / 466 MB, free: 6.645 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.0005536/0.3743, allocations: 307 kB / 466.3 MB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/0.3745, allocations: 201.7 kB / 466.5 MB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002284/0.3768, allocations: 1.161 MB / 467.7 MB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.3768, allocations: 8 kB / 467.7 MB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3768, allocations: 4 kB / 467.7 MB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3768, allocations: 0 / 467.7 MB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.378, allocations: 1.01 MB / 468.7 MB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.444e-05/0.3781, allocations: 79.98 kB / 468.8 MB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003864/0.3785, allocations: 63.94 kB / 468.9 MB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.3796, allocations: 0.6475 MB / 469.5 MB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.557e-05/0.3797, allocations: 23.98 kB / 469.5 MB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.3809, allocations: 1.145 MB / 470.7 MB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.381, allocations: 0 / 470.7 MB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.3836, allocations: 1.436 MB / 472.1 MB, free: 448 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004607/0.3841, allocations: 278.6 kB / 472.4 MB, free: 148 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.3842, allocations: 15.94 kB / 472.4 MB, free: 132 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/0.3847, allocations: 39.95 kB / 472.4 MB, free: 92 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.3848, allocations: 52.44 kB / 472.5 MB, free: 36 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.582e-05/0.3849, allocations: 28.11 kB / 472.5 MB, free: 8 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001203/0.3861, allocations: 0.9444 MB / 473.5 MB, free: 15.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3861, allocations: 0 / 473.5 MB, free: 15.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009225/0.387, allocations: 435.4 kB / 473.9 MB, free: 14.62 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.003608/0.3907, allocations: 2.371 MB / 476.3 MB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002015/0.3927, allocations: 0.8775 MB / 477.1 MB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3927, allocations: 4.125 kB / 477.1 MB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.394, allocations: 0.5432 MB / 477.7 MB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.395, allocations: 226.4 kB / 477.9 MB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.4106, allocations: 10.69 MB / 488.6 MB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006593/0.4113, allocations: 1.224 MB / 489.8 MB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004666/0.4118, allocations: 166.1 kB / 490 MB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006171/0.4124, allocations: 0.6477 MB / 490.6 MB, free: 13.47 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4124, allocations: 0 / 490.6 MB, free: 13.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06644/0.4788, allocations: 33.78 MB / 0.5121 GB, free: 11.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.11/15.59, allocations: 0 / 0.5121 GB, free: 11.88 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