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.001348/0.001348, allocations: 113.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001456/0.001456, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001562, allocations: 60.59 kB / 306.6 MB, free: 0.7656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1249, allocations: 50.53 MB / 357.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009717/0.1346, allocations: 8.286 MB / 365.4 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1873/0.322, allocations: 11.23 MB / 376.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.3237, allocations: 18.41 kB / 376.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003187/0.327, allocations: 0.7624 MB / 377.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006093/0.3331, allocations: 1.032 MB / 378.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003093/0.3362, allocations: 0.6098 MB / 379 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006213/0.3424, allocations: 2.724 MB / 381.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000642/0.3431, allocations: 350.2 kB / 382.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009719/0.3441, allocations: 0.5499 MB / 382.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006637/0.3448, allocations: 0.6217 MB / 383.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.3449, allocations: 67.38 kB / 383.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002844/0.3478, allocations: 0.7926 MB / 384.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.348, allocations: 215.9 kB / 384.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007479/0.3487, allocations: 0.7714 MB / 385.1 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003504/0.3523, allocations: 2.108 MB / 387.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3523, allocations: 0 / 387.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3523, allocations: 3.938 kB / 387.2 MB, free: 5.859 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.333e-05/0.3523, allocations: 1.406 kB / 387.2 MB, free: 5.859 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.004417/0.3568, allocations: 2.215 MB / 389.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.3568, allocations: 9.312 kB / 389.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.357, allocations: 110.6 kB / 389.5 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005687/0.3575, allocations: 233 kB / 389.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001908/0.3595, allocations: 1.3 MB / 391.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.547e-05/0.3595, allocations: 45.48 kB / 391.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.3596, allocations: 55.88 kB / 391.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.3611, allocations: 0.6974 MB / 391.9 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.3611, allocations: 0 / 391.9 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.395e-05/0.3612, allocations: 24.53 kB / 391.9 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/0.3612, allocations: 13.66 kB / 391.9 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.3625, allocations: 0.5706 MB / 392.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003565/0.3661, allocations: 2.53 MB / 395 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.3672, allocations: 0.6322 MB / 395.6 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007994/0.368, allocations: 0.53 MB / 396.2 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007985/0.376, allocations: 5.89 MB / 402.1 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008433/0.3769, allocations: 400.7 kB / 402.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 3.176e-06/0.3769, allocations: 0 / 402.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.007119/0.3841, allocations: 2.43 MB / 404.9 MB, free: 9.328 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.405e-05/0.3842, allocations: 89.66 kB / 405 MB, free: 9.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/0.3861, allocations: 1.419 MB / 406.4 MB, free: 7.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.9e-05/0.3862, allocations: 41.64 kB / 406.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006528/0.3868, allocations: 0.7861 MB / 407.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002037/0.387, allocations: 249.3 kB / 407.5 MB, free: 6.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000222/0.3873, allocations: 138.6 kB / 407.6 MB, free: 6.543 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3874, allocations: 345.9 kB / 407.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006541/0.3881, allocations: 257.8 kB / 408.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008337/0.3889, allocations: 446.1 kB / 408.6 MB, free: 5.438 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003314/0.3923, allocations: 1.552 MB / 410.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.3923, allocations: 0 / 410.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002478/0.3948, allocations: 1.152 MB / 411.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.3948, allocations: 8.578 kB / 411.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001334/0.395, allocations: 84 kB / 411.4 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.3961, allocations: 0.595 MB / 412 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005789/0.3966, allocations: 135.8 kB / 412.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/0.3983, allocations: 1.533 MB / 413.7 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.3995, allocations: 91.17 kB / 413.8 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.3996, allocations: 40 kB / 413.8 MB, free: 116 kB / 318.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.0009193/0.4006, allocations: 299.1 kB / 414.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006019/0.4012, allocations: 197.7 kB / 414.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002914/0.4041, allocations: 1.159 MB / 415.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.4041, allocations: 11.94 kB / 415.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.4042, allocations: 1.938 kB / 415.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4042, allocations: 3.984 kB / 415.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.4063, allocations: 1.01 MB / 416.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001241/0.4064, allocations: 75.98 kB / 416.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004321/0.4069, allocations: 71.88 kB / 416.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/0.4082, allocations: 0.6436 MB / 417.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.951e-05/0.4083, allocations: 23.98 kB / 417.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/0.4099, allocations: 1.141 MB / 418.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.4099, allocations: 3.938 kB / 418.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003381/0.4133, allocations: 1.435 MB / 419.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.4143, allocations: 278.6 kB / 420.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005814/0.4149, allocations: 12 kB / 420.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008128/0.4157, allocations: 43.89 kB / 420.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.4159, allocations: 52.5 kB / 420.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.535e-05/0.416, allocations: 27.42 kB / 420.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001904/0.4179, allocations: 0.9406 MB / 421.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4179, allocations: 0 / 421.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001771/0.4197, allocations: 439.4 kB / 421.6 MB, free: 8.113 MB / 334.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.00454/0.4242, allocations: 2.366 MB / 424 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002281/0.4266, allocations: 0.8854 MB / 424.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.77e-06/0.4266, allocations: 128 / 424.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.4278, allocations: 0.5509 MB / 425.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.4296, allocations: 226.6 kB / 425.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02701/0.4566, allocations: 12.44 MB / 438.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000941/0.4576, allocations: 1.228 MB / 439.3 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006637/0.4583, allocations: 158.1 kB / 439.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008012/0.4591, allocations: 0.6555 MB / 440.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4591, allocations: 0 / 440.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07864/0.5378, allocations: 32.31 MB / 472.4 MB, free: 4.555 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/0.538, allocations: 256.9 kB / 472.7 MB, free: 4.301 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.922/3.46, allocations: 0 / 472.7 MB, free: 4.301 MB / 382.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