Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 109 kB / 17.05 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 195.9 kB / 17.99 MB, free: 5.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 51.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2798, allocations: 49.43 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.009168/0.2891, allocations: 8.317 MB / 408.5 MB, free: 460 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.3024, allocations: 11.3 MB / 419.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001596/0.304, allocations: 55.56 kB / 419.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002615/0.3067, allocations: 0.8512 MB / 420.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004952/0.3117, allocations: 1.231 MB / 422 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0025/0.3142, allocations: 0.7012 MB / 422.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005379/0.3196, allocations: 2.697 MB / 425.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007277/0.3204, allocations: 349.7 kB / 425.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000983/0.3214, allocations: 0.5598 MB / 426.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.3224, allocations: 0.6211 MB / 426.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002378/0.3227, allocations: 68 kB / 427 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002319/0.325, allocations: 0.7844 MB / 427.8 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002972/0.3253, allocations: 218.7 kB / 428 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001086/0.3264, allocations: 0.7608 MB / 428.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003896/0.3303, allocations: 2.131 MB / 430.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.3303, allocations: 3.938 kB / 430.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.3304, allocations: 0 / 430.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.607e-05/0.3304, allocations: 0 / 430.9 MB, free: 10.01 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.004433/0.3349, allocations: 2.288 MB / 433.1 MB, free: 7.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.335, allocations: 8.031 kB / 433.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000189/0.3351, allocations: 102.7 kB / 433.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000384/0.3355, allocations: 231.5 kB / 433.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002182/0.3377, allocations: 1.318 MB / 434.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.949e-05/0.3378, allocations: 45.25 kB / 434.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.3379, allocations: 59.95 kB / 434.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.3394, allocations: 0.69 MB / 435.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.3394, allocations: 0 / 435.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.12e-05/0.3395, allocations: 20 kB / 435.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.637e-05/0.3395, allocations: 23.98 kB / 435.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.3409, allocations: 0.5672 MB / 436.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004239/0.3451, allocations: 2.519 MB / 438.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.3464, allocations: 0.631 MB / 439.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009179/0.3473, allocations: 0.5306 MB / 439.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009195/0.3565, allocations: 7.496 MB / 447.4 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000802/0.3574, allocations: 385.9 kB / 447.8 MB, free: 7.656 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.835e-06/0.3574, allocations: 0 / 447.8 MB, free: 7.656 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.005625/0.363, allocations: 2.083 MB / 449.8 MB, free: 5.543 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.478e-05/0.3631, allocations: 89.53 kB / 449.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001976/0.3651, allocations: 1.431 MB / 451.4 MB, free: 3.969 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.591e-05/0.3652, allocations: 37.7 kB / 451.4 MB, free: 3.926 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007427/0.3659, allocations: 0.8141 MB / 452.2 MB, free: 3.105 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002132/0.3661, allocations: 230 kB / 452.4 MB, free: 2.879 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.3664, allocations: 138.6 kB / 452.6 MB, free: 2.734 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3665, allocations: 338 kB / 452.9 MB, free: 2.398 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005954/0.3671, allocations: 253.8 kB / 453.1 MB, free: 2.152 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007104/0.3678, allocations: 458.2 kB / 453.6 MB, free: 1.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.3692, allocations: 0.7402 MB / 454.3 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.3692, allocations: 4 kB / 454.3 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002166/0.3714, allocations: 1.141 MB / 455.5 MB, free: 15.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.3714, allocations: 8 kB / 455.5 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.3715, allocations: 71.98 kB / 455.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.3728, allocations: 0.6994 MB / 456.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/0.3732, allocations: 111.8 kB / 456.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.3746, allocations: 1.132 MB / 457.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007228/0.3753, allocations: 95.47 kB / 457.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.13e-05/0.3754, allocations: 36 kB / 457.6 MB, free: 13.47 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(5,26)} Notification: Performance of prepare postOptimizeDAE: time 0.0004626/0.3759, allocations: 287.3 kB / 457.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002766/0.3762, allocations: 218.7 kB / 458.1 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/0.3784, allocations: 1.088 MB / 459.2 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.3784, allocations: 7.938 kB / 459.2 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3784, allocations: 3.938 kB / 459.2 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3784, allocations: 3.984 kB / 459.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.3797, allocations: 0.9796 MB / 460.2 MB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001041/0.3798, allocations: 71.98 kB / 460.3 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003323/0.3802, allocations: 59.88 kB / 460.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001101/0.3813, allocations: 0.6711 MB / 461 MB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-05/0.3813, allocations: 19.98 kB / 461 MB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.3826, allocations: 1.085 MB / 462.1 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3826, allocations: 3.984 kB / 462.1 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/0.3851, allocations: 1.36 MB / 463.5 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004374/0.3856, allocations: 287.8 kB / 463.8 MB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.3858, allocations: 15.94 kB / 463.8 MB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000484/0.3863, allocations: 35.94 kB / 463.8 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.3864, allocations: 48.39 kB / 463.9 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.276e-05/0.3865, allocations: 27.98 kB / 463.9 MB, free: 7.066 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001231/0.3877, allocations: 0.9488 MB / 464.8 MB, free: 6.098 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3877, allocations: 0 / 464.8 MB, free: 6.098 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009256/0.3886, allocations: 435 kB / 465.3 MB, free: 5.672 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Q1.vbe,Q1.vbc,Q2.vbe,Q2.vbc) * 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 {(5,24)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003575/0.3922, allocations: 2.294 MB / 467.5 MB, free: 3.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001949/0.3942, allocations: 0.8506 MB / 468.4 MB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3942, allocations: 4 kB / 468.4 MB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001164/0.3954, allocations: 0.5253 MB / 468.9 MB, free: 1.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.3965, allocations: 222 kB / 469.1 MB, free: 1.723 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01669/0.4132, allocations: 10.77 MB / 479.9 MB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007398/0.414, allocations: 1.22 MB / 481.1 MB, free: 5.359 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000441/0.4144, allocations: 162.1 kB / 481.3 MB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006325/0.415, allocations: 0.6282 MB / 481.9 MB, free: 4.57 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4151, allocations: 0 / 481.9 MB, free: 4.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05913/0.4742, allocations: 32.49 MB / 0.5023 GB, free: 4.336 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.32, allocations: 8 kB / 0.5024 GB, free: 4.332 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkDifferentialPair/Spice3BenchmarkDifferentialPair.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches