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.001007/0.001007, allocations: 103.3 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 64.06 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08876/0.08996, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.007875/0.09786, allocations: 8.278 MB / 365.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.15/0.2479, allocations: 11.57 MB / 376.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.249, allocations: 16.16 kB / 376.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.2513, allocations: 0.7641 MB / 377.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004282/0.2556, allocations: 0.9963 MB / 378.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001993/0.2576, allocations: 0.508 MB / 379 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004099/0.2617, allocations: 2.625 MB / 381.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004334/0.2622, allocations: 333.6 kB / 382 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008368/0.2631, allocations: 0.5159 MB / 382.5 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005304/0.2636, allocations: 0.6083 MB / 383.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.2637, allocations: 47.72 kB / 383.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001971/0.2657, allocations: 0.7755 MB / 383.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.2658, allocations: 200.8 kB / 384.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005471/0.2664, allocations: 0.7478 MB / 384.9 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002112/0.2685, allocations: 2.069 MB / 386.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2685, allocations: 1.625 kB / 386.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.2685, allocations: 0 / 386.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.2686, allocations: 0 / 386.9 MB, free: 5.648 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.002952/0.2715, allocations: 2.223 MB / 389.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.2716, allocations: 8.938 kB / 389.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.2717, allocations: 102.8 kB / 389.3 MB, free: 4.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003602/0.2721, allocations: 232.8 kB / 389.5 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.2735, allocations: 1.297 MB / 390.8 MB, free: 3.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.2735, allocations: 41.91 kB / 390.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.019e-05/0.2736, allocations: 55.91 kB / 390.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/0.2748, allocations: 0.6979 MB / 391.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.2748, allocations: 0 / 391.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.702e-05/0.2749, allocations: 21.41 kB / 391.6 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.2749, allocations: 16.44 kB / 391.6 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.2762, allocations: 0.5708 MB / 392.2 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002907/0.2791, allocations: 2.538 MB / 394.7 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.2802, allocations: 0.6257 MB / 395.4 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007654/0.2809, allocations: 0.5414 MB / 395.9 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007159/0.2881, allocations: 5.891 MB / 401.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008028/0.2889, allocations: 404.9 kB / 402.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 3.517e-06/0.289, allocations: 0 / 402.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.006477/0.2954, allocations: 2.418 MB / 404.6 MB, free: 9.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.2955, allocations: 86.61 kB / 404.7 MB, free: 9.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.2974, allocations: 1.417 MB / 406.1 MB, free: 7.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.086e-05/0.2975, allocations: 37.7 kB / 406.1 MB, free: 7.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006502/0.2982, allocations: 0.7921 MB / 406.9 MB, free: 6.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002228/0.2984, allocations: 249.8 kB / 407.2 MB, free: 6.734 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002159/0.2986, allocations: 138.6 kB / 407.3 MB, free: 6.594 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.2988, allocations: 341.9 kB / 407.6 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006031/0.2994, allocations: 257.9 kB / 407.9 MB, free: 6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006789/0.3001, allocations: 446.1 kB / 408.3 MB, free: 5.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003304/0.3034, allocations: 1.549 MB / 409.9 MB, free: 3.871 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3034, allocations: 4 kB / 409.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002441/0.3059, allocations: 1.152 MB / 411 MB, free: 2.703 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.3059, allocations: 12.09 kB / 411 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/0.306, allocations: 79.98 kB / 411.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009739/0.307, allocations: 0.5983 MB / 411.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005352/0.3075, allocations: 131.8 kB / 411.9 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.3089, allocations: 1.539 MB / 413.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008146/0.3097, allocations: 90.12 kB / 413.5 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.469e-05/0.3098, allocations: 39.98 kB / 413.5 MB, free: 176 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.0005721/0.3104, allocations: 298.7 kB / 413.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.3106, allocations: 201.7 kB / 414 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002298/0.3129, allocations: 1.157 MB / 415.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3129, allocations: 4 kB / 415.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3129, allocations: 0 / 415.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.313, allocations: 4 kB / 415.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.3141, allocations: 1.011 MB / 416.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.263e-05/0.3142, allocations: 76 kB / 416.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003538/0.3145, allocations: 67.92 kB / 416.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.3156, allocations: 0.6475 MB / 417 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.041e-05/0.3156, allocations: 27.92 kB / 417 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.3169, allocations: 1.141 MB / 418.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3169, allocations: 3.938 kB / 418.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.3195, allocations: 1.435 MB / 419.6 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003663/0.3199, allocations: 282.6 kB / 419.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001557/0.32, allocations: 12 kB / 419.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004691/0.3205, allocations: 43.89 kB / 419.9 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.3206, allocations: 48.5 kB / 420 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.102e-05/0.3207, allocations: 27.98 kB / 420 MB, free: 9.566 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001063/0.3218, allocations: 0.9367 MB / 420.9 MB, free: 8.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3218, allocations: 0 / 420.9 MB, free: 8.609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001079/0.3229, allocations: 431.4 kB / 421.3 MB, free: 8.188 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.00366/0.3265, allocations: 2.369 MB / 423.7 MB, free: 5.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.3284, allocations: 0.8776 MB / 424.6 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3285, allocations: 8.062 kB / 424.6 MB, free: 4.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.3296, allocations: 0.5447 MB / 425.1 MB, free: 4.371 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.3308, allocations: 209 kB / 425.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02185/0.3527, allocations: 12.43 MB / 437.8 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006624/0.3534, allocations: 1.226 MB / 439 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005683/0.354, allocations: 166.1 kB / 439.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006186/0.3546, allocations: 0.6516 MB / 439.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of SimCode: time 1.352e-06/0.3546, allocations: 0 / 439.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04842/0.403, allocations: 31.59 MB / 471.4 MB, free: 5.352 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001696/0.4032, allocations: 250.7 kB / 471.6 MB, free: 5.098 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.679/3.083, allocations: 6.75 kB / 471.7 MB, free: 5.094 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