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.001233/0.001233, allocations: 112.3 kB / 17.06 MB, free: 5.965 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.001128/0.001128, allocations: 196 kB / 18.01 MB, free: 5.051 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.293/1.293, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 51.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.275, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.00889/0.2839, allocations: 8.32 MB / 408.6 MB, free: 468 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01399/0.2979, allocations: 11.29 MB / 419.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001426/0.2994, allocations: 55.56 kB / 419.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002412/0.3019, allocations: 0.8472 MB / 420.8 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004558/0.3065, allocations: 1.235 MB / 422 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002522/0.309, allocations: 0.6934 MB / 422.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004703/0.3137, allocations: 2.701 MB / 425.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006189/0.3144, allocations: 357.7 kB / 425.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009416/0.3153, allocations: 0.5559 MB / 426.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007419/0.3161, allocations: 0.6172 MB / 426.9 MB, free: 14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.3162, allocations: 71.88 kB / 427 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00197/0.3182, allocations: 0.7805 MB / 427.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.3184, allocations: 222.7 kB / 428 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007056/0.3191, allocations: 0.7647 MB / 428.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002574/0.3217, allocations: 2.127 MB / 430.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3217, allocations: 0 / 430.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.3218, allocations: 3.984 kB / 430.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.588e-05/0.3218, allocations: 0 / 430.9 MB, free: 10.02 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.003348/0.3252, allocations: 2.284 MB / 433.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.3252, allocations: 8.031 kB / 433.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/0.3253, allocations: 106.7 kB / 433.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002723/0.3256, allocations: 231.5 kB / 433.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/0.3275, allocations: 1.318 MB / 434.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.879e-05/0.3275, allocations: 45.3 kB / 434.9 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.3276, allocations: 55.95 kB / 434.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.329, allocations: 0.6938 MB / 435.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.329, allocations: 4 kB / 435.6 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.734e-05/0.3291, allocations: 24 kB / 435.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.3291, allocations: 15.98 kB / 435.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.3304, allocations: 0.5712 MB / 436.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.3339, allocations: 2.523 MB / 438.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.3351, allocations: 0.6116 MB / 439.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008647/0.336, allocations: 0.5384 MB / 439.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008771/0.3447, allocations: 7.504 MB / 447.4 MB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008145/0.3456, allocations: 381.9 kB / 447.8 MB, free: 7.668 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.384e-06/0.3456, allocations: 0 / 447.8 MB, free: 7.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.005775/0.3514, allocations: 2.087 MB / 449.9 MB, free: 5.551 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.3515, allocations: 89.53 kB / 449.9 MB, free: 5.445 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/0.3532, allocations: 1.435 MB / 451.4 MB, free: 3.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.375e-05/0.3533, allocations: 37.7 kB / 451.4 MB, free: 3.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006746/0.354, allocations: 0.8063 MB / 452.2 MB, free: 3.117 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001975/0.3542, allocations: 241.9 kB / 452.5 MB, free: 2.879 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001996/0.3544, allocations: 134.6 kB / 452.6 MB, free: 2.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.3545, allocations: 338 kB / 452.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005881/0.3551, allocations: 253.8 kB / 453.2 MB, free: 2.156 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006981/0.3558, allocations: 458.2 kB / 453.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.3572, allocations: 0.7363 MB / 454.4 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3572, allocations: 0 / 454.4 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002201/0.3594, allocations: 1.145 MB / 455.5 MB, free: 15.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.3594, allocations: 10.5 kB / 455.5 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001/0.3595, allocations: 75.98 kB / 455.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/0.3608, allocations: 0.6954 MB / 456.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004504/0.3613, allocations: 111.8 kB / 456.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.3627, allocations: 1.136 MB / 457.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006391/0.3633, allocations: 91.47 kB / 457.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.835e-05/0.3634, allocations: 40 kB / 457.7 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.0004859/0.3639, allocations: 289.7 kB / 457.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.3641, allocations: 210.7 kB / 458.1 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/0.3664, allocations: 1.088 MB / 459.2 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.3664, allocations: 7.938 kB / 459.2 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.3664, allocations: 0 / 459.2 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3665, allocations: 7.984 kB / 459.2 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.3676, allocations: 0.9718 MB / 460.2 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.295e-05/0.3677, allocations: 71.98 kB / 460.3 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003285/0.3681, allocations: 55.88 kB / 460.3 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.3692, allocations: 0.6788 MB / 461 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.208e-05/0.3693, allocations: 19.98 kB / 461 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.3706, allocations: 1.085 MB / 462.1 MB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3706, allocations: 3.984 kB / 462.1 MB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.3733, allocations: 1.36 MB / 463.5 MB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004352/0.3737, allocations: 283.7 kB / 463.8 MB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/0.3739, allocations: 19.92 kB / 463.8 MB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004417/0.3743, allocations: 31.97 kB / 463.8 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.3745, allocations: 52.38 kB / 463.9 MB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.988e-05/0.3746, allocations: 27.98 kB / 463.9 MB, free: 7.078 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001453/0.376, allocations: 0.9448 MB / 464.8 MB, free: 6.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.376, allocations: 4 kB / 464.8 MB, free: 6.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001203/0.3773, allocations: 431 kB / 465.3 MB, free: 5.688 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.003831/0.3811, allocations: 2.302 MB / 467.6 MB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002182/0.3833, allocations: 0.8576 MB / 468.4 MB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.3833, allocations: 0.875 kB / 468.4 MB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.3845, allocations: 0.5212 MB / 468.9 MB, free: 1.949 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.3856, allocations: 212.3 kB / 469.2 MB, free: 1.738 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01724/0.4028, allocations: 10.77 MB / 479.9 MB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007381/0.4036, allocations: 1.22 MB / 481.1 MB, free: 5.375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004696/0.4041, allocations: 162.1 kB / 481.3 MB, free: 5.215 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000663/0.4048, allocations: 0.6243 MB / 481.9 MB, free: 4.59 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4048, allocations: 0 / 481.9 MB, free: 4.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06609/0.4709, allocations: 32.5 MB / 0.5024 GB, free: 4.348 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.83/15.3, allocations: 8.25 kB / 0.5024 GB, free: 4.344 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