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.00108/0.00108, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 64.45 kB / 307 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.09095, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009062/0.1001, allocations: 8.331 MB / 365.9 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1908/0.2909, allocations: 11.33 MB / 377.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.292, allocations: 15.47 kB / 377.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002235/0.2943, allocations: 0.8522 MB / 378.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004461/0.2988, allocations: 1.224 MB / 379.3 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004018/0.3028, allocations: 0.7026 MB / 380 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00622/0.3091, allocations: 2.705 MB / 382.7 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000654/0.3098, allocations: 357.1 kB / 383.1 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.3109, allocations: 0.5425 MB / 383.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006531/0.3115, allocations: 0.6195 MB / 384.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001267/0.3116, allocations: 67.41 kB / 384.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002496/0.3142, allocations: 0.7939 MB / 385.1 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000183/0.3144, allocations: 223.5 kB / 385.3 MB, free: 6.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006182/0.315, allocations: 0.7689 MB / 386.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002613/0.3176, allocations: 2.109 MB / 388.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3176, allocations: 0 / 388.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3176, allocations: 0 / 388.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.858e-05/0.3177, allocations: 0 / 388.2 MB, free: 5.422 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.003554/0.3212, allocations: 2.219 MB / 390.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.3213, allocations: 9.156 kB / 390.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001038/0.3214, allocations: 104.5 kB / 390.5 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000415/0.3218, allocations: 239.9 kB / 390.8 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.3234, allocations: 1.295 MB / 392.1 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/0.3235, allocations: 43.47 kB / 392.1 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.3236, allocations: 56.92 kB / 392.2 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.3248, allocations: 0.6976 MB / 392.9 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.3248, allocations: 0 / 392.9 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-05/0.3249, allocations: 25.12 kB / 392.9 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.3249, allocations: 13.69 kB / 392.9 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.3261, allocations: 0.5726 MB / 393.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003365/0.3295, allocations: 2.531 MB / 396 MB, free: 488 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.3308, allocations: 0.6169 MB / 396.6 MB, free: 128 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009236/0.3317, allocations: 0.5392 MB / 397.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007151/0.3389, allocations: 5.889 MB / 403.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008088/0.3397, allocations: 403.7 kB / 403.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 3.015e-06/0.3397, allocations: 0 / 403.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.006364/0.3461, allocations: 2.424 MB / 405.9 MB, free: 8.707 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.3462, allocations: 96.86 kB / 406 MB, free: 8.598 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.3478, allocations: 1.423 MB / 407.4 MB, free: 7.137 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.661e-05/0.3479, allocations: 33.7 kB / 407.4 MB, free: 7.098 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006128/0.3485, allocations: 0.7823 MB / 408.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.3487, allocations: 246.8 kB / 408.4 MB, free: 6.066 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000228/0.349, allocations: 138.6 kB / 408.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3491, allocations: 338 kB / 408.9 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005994/0.3497, allocations: 261.8 kB / 409.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007288/0.3504, allocations: 446.1 kB / 409.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003158/0.3536, allocations: 1.556 MB / 411.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3536, allocations: 4 kB / 411.2 MB, free: 3.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002277/0.3559, allocations: 1.156 MB / 412.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3559, allocations: 8.062 kB / 412.3 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/0.3561, allocations: 84 kB / 412.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009613/0.357, allocations: 0.6013 MB / 413 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005449/0.3576, allocations: 131.8 kB / 413.1 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.359, allocations: 1.523 MB / 414.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.36, allocations: 95.12 kB / 414.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.144e-05/0.3601, allocations: 37.03 kB / 414.8 MB, free: 15.5 MB / 334.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.0007968/0.3609, allocations: 301.7 kB / 415.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004719/0.3614, allocations: 197.7 kB / 415.3 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002641/0.3641, allocations: 1.159 MB / 416.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.3641, allocations: 7.938 kB / 416.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3641, allocations: 4 kB / 416.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3641, allocations: 3.984 kB / 416.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.3658, allocations: 1.008 MB / 417.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001127/0.366, allocations: 76 kB / 417.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004018/0.3664, allocations: 63.88 kB / 417.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.3675, allocations: 0.6553 MB / 418.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.883e-05/0.3676, allocations: 20.88 kB / 418.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.3689, allocations: 1.134 MB / 419.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.3689, allocations: 7.938 kB / 419.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002794/0.3717, allocations: 1.429 MB / 420.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006898/0.3724, allocations: 290.6 kB / 421.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003246/0.3727, allocations: 13.12 kB / 421.1 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005718/0.3733, allocations: 43.89 kB / 421.2 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.3734, allocations: 48.5 kB / 421.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.517e-05/0.3735, allocations: 27.98 kB / 421.3 MB, free: 8.891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001269/0.3748, allocations: 0.9367 MB / 422.2 MB, free: 7.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3748, allocations: 0 / 422.2 MB, free: 7.934 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001146/0.3759, allocations: 439.4 kB / 422.6 MB, free: 7.504 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.003829/0.3798, allocations: 2.361 MB / 425 MB, free: 5.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002094/0.3819, allocations: 0.8854 MB / 425.9 MB, free: 4.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3819, allocations: 4.125 kB / 425.9 MB, free: 4.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.3831, allocations: 0.5509 MB / 426.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.3843, allocations: 217.5 kB / 426.6 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01617/0.4005, allocations: 12.01 MB / 438.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006724/0.4012, allocations: 1.228 MB / 439.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005515/0.4017, allocations: 158.2 kB / 440 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006112/0.4023, allocations: 0.6516 MB / 440.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4023, allocations: 0 / 440.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.278/3.68, allocations: 32.64 MB / 473.3 MB, free: 4.012 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/16.31, allocations: 6.125 kB / 473.3 MB, free: 4.012 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