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.0007418/0.0007418, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009028/0.0009029, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001912/0.0001913, allocations: 8.188 kB / 307.8 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08437/0.08458, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.006566/0.09118, allocations: 7.834 MB / 367.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1703/0.2615, allocations: 11.41 MB / 378.6 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001019/0.2626, allocations: 19.69 kB / 378.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002203/0.2648, allocations: 0.7617 MB / 379.4 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004071/0.2689, allocations: 1.004 MB / 380.4 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.2709, allocations: 0.5057 MB / 380.9 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004153/0.275, allocations: 2.626 MB / 383.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003928/0.2754, allocations: 323.7 kB / 383.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006701/0.2761, allocations: 0.5046 MB / 384.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005089/0.2766, allocations: 0.5876 MB / 384.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.762e-05/0.2767, allocations: 37.12 kB / 385 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00171/0.2785, allocations: 0.7647 MB / 385.7 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.2786, allocations: 188.7 kB / 385.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005009/0.2791, allocations: 0.7603 MB / 386.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002167/0.2813, allocations: 2.037 MB / 388.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2813, allocations: 0 / 388.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2813, allocations: 1.094 kB / 388.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.862e-05/0.2813, allocations: 0 / 388.7 MB, free: 5.879 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.002686/0.284, allocations: 1.975 MB / 390.7 MB, free: 4.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.2841, allocations: 10.81 kB / 390.7 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.2842, allocations: 100.5 kB / 390.8 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003457/0.2845, allocations: 236.8 kB / 391 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.286, allocations: 1.312 MB / 392.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.2861, allocations: 43.58 kB / 392.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.2862, allocations: 57.16 kB / 392.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.2875, allocations: 0.7124 MB / 393.1 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.2875, allocations: 3.938 kB / 393.1 MB, free: 3.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.659e-05/0.2875, allocations: 25.28 kB / 393.2 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.36e-05/0.2876, allocations: 21.86 kB / 393.2 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001264/0.2888, allocations: 0.6147 MB / 393.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002923/0.2918, allocations: 2.533 MB / 396.3 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.2929, allocations: 0.6722 MB / 397 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008146/0.2937, allocations: 0.562 MB / 397.6 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006362/0.3001, allocations: 5.915 MB / 403.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007875/0.3009, allocations: 426.9 kB / 403.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 2.565e-06/0.3009, allocations: 0 / 403.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.006676/0.3076, allocations: 2.501 MB / 406.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.3077, allocations: 85.67 kB / 406.5 MB, free: 9.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/0.3093, allocations: 1.426 MB / 407.9 MB, free: 7.648 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.672e-05/0.3094, allocations: 41.7 kB / 408 MB, free: 7.602 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006217/0.31, allocations: 0.7823 MB / 408.7 MB, free: 6.809 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.3102, allocations: 250.4 kB / 409 MB, free: 6.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.528e-05/0.3103, allocations: 61.69 kB / 409 MB, free: 6.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.3104, allocations: 337.9 kB / 409.4 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006245/0.311, allocations: 289.8 kB / 409.7 MB, free: 5.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.3118, allocations: 466.1 kB / 410.1 MB, free: 5.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003295/0.3151, allocations: 1.654 MB / 411.8 MB, free: 3.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3151, allocations: 0 / 411.8 MB, free: 3.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.001998/0.3171, allocations: 1.191 MB / 413 MB, free: 2.422 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.3171, allocations: 8 kB / 413 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.3172, allocations: 80.58 kB / 413 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009392/0.3182, allocations: 0.6131 MB / 413.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005622/0.3188, allocations: 143.8 kB / 413.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.3201, allocations: 1.531 MB / 415.3 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007178/0.3208, allocations: 107.4 kB / 415.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.637e-05/0.3209, allocations: 32.94 kB / 415.5 MB, free: 15.86 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.0004677/0.3214, allocations: 297.5 kB / 415.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.3216, allocations: 205.6 kB / 416 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002388/0.324, allocations: 1.205 MB / 417.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.324, allocations: 8 kB / 417.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.324, allocations: 0 / 417.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.324, allocations: 3.984 kB / 417.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.3251, allocations: 1.01 MB / 418.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.239e-05/0.3252, allocations: 75.98 kB / 418.3 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.3255, allocations: 79.94 kB / 418.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001049/0.3266, allocations: 0.6475 MB / 419 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.624e-05/0.3267, allocations: 23.98 kB / 419 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.3278, allocations: 1.137 MB / 420.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.3278, allocations: 7.969 kB / 420.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002636/0.3305, allocations: 1.507 MB / 421.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003087/0.3308, allocations: 286.6 kB / 421.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.331, allocations: 12 kB / 422 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000462/0.3314, allocations: 47.89 kB / 422 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.3315, allocations: 48.5 kB / 422 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.3316, allocations: 35.92 kB / 422.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001024/0.3326, allocations: 0.9406 MB / 423 MB, free: 8.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3326, allocations: 0 / 423 MB, free: 8.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008852/0.3335, allocations: 435.4 kB / 423.4 MB, free: 7.723 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.003544/0.3371, allocations: 2.431 MB / 425.9 MB, free: 5.297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001878/0.339, allocations: 0.9321 MB / 426.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.339, allocations: 0 / 426.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.3401, allocations: 0.5706 MB / 427.4 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009519/0.3411, allocations: 208.9 kB / 427.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02/0.3611, allocations: 12.68 MB / 440.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006607/0.3618, allocations: 1.216 MB / 441.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005351/0.3623, allocations: 166.1 kB / 441.6 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006063/0.3629, allocations: 0.6438 MB / 442.3 MB, free: 3.91 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3629, allocations: 3.938 kB / 442.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04593/0.4089, allocations: 31.39 MB / 473.7 MB, free: 4.734 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002206/0.4091, allocations: 255.8 kB / 473.9 MB, free: 4.484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.43/2.839, allocations: 0 / 473.9 MB, free: 4.484 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