Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_3_2_3_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.001397/0.001397, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001447/0.001447, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08636/0.08762, allocations: 46.61 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.1802/0.2679, allocations: 8.177 MB / 382.8 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.2804, allocations: 10.96 MB / 393.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002319/0.2828, allocations: 59.78 kB / 393.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002613/0.2855, allocations: 0.8224 MB / 394.7 MB, free: 1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004897/0.2904, allocations: 1.222 MB / 395.9 MB, free: 240 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00234/0.2928, allocations: 0.6956 MB / 396.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004964/0.2978, allocations: 2.645 MB / 399.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006037/0.2984, allocations: 354.4 kB / 399.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009528/0.2994, allocations: 0.5299 MB / 400.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008578/0.3003, allocations: 0.6211 MB / 400.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001524/0.3004, allocations: 70.91 kB / 400.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002428/0.3029, allocations: 0.7104 MB / 401.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000296/0.3032, allocations: 217.3 kB / 401.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.3042, allocations: 0.7727 MB / 402.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003228/0.3074, allocations: 2.128 MB / 404.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3075, allocations: 0 / 404.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3075, allocations: 1.375 kB / 404.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.862e-05/0.3075, allocations: 0 / 404.6 MB, free: 12.43 MB / 334.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.003843/0.3114, allocations: 2.282 MB / 406.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3114, allocations: 9.594 kB / 406.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001193/0.3116, allocations: 104.3 kB / 407 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003127/0.3119, allocations: 230.8 kB / 407.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/0.3138, allocations: 1.325 MB / 408.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.3139, allocations: 39.16 kB / 408.6 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.314, allocations: 55.78 kB / 408.7 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.3153, allocations: 0.6941 MB / 409.3 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.3154, allocations: 0 / 409.3 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.236e-05/0.3154, allocations: 21.47 kB / 409.4 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.3155, allocations: 22.05 kB / 409.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.3168, allocations: 0.565 MB / 410 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0038/0.3206, allocations: 2.517 MB / 412.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.3219, allocations: 0.624 MB / 413.1 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009255/0.3228, allocations: 0.5297 MB / 413.6 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008918/0.3317, allocations: 7.505 MB / 421.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007877/0.3326, allocations: 383.9 kB / 421.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.655e-06/0.3326, allocations: 0 / 421.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.005875/0.3385, allocations: 2.1 MB / 423.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/0.3386, allocations: 81.55 kB / 423.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001781/0.3404, allocations: 1.435 MB / 425.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.156e-05/0.3404, allocations: 33.7 kB / 425.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007158/0.3412, allocations: 0.8102 MB / 426 MB, free: 10.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.3414, allocations: 237.9 kB / 426.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/0.3416, allocations: 142.6 kB / 426.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.3417, allocations: 341.9 kB / 426.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005972/0.3423, allocations: 249.8 kB / 426.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007045/0.343, allocations: 466.2 kB / 427.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.3444, allocations: 0.7325 MB / 428.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3444, allocations: 0 / 428.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002162/0.3466, allocations: 1.142 MB / 429.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.3466, allocations: 11.98 kB / 429.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001088/0.3467, allocations: 68 kB / 429.3 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/0.3479, allocations: 0.7033 MB / 430 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004639/0.3484, allocations: 115.7 kB / 430.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.3497, allocations: 1.124 MB / 431.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.3507, allocations: 87.5 kB / 431.3 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.239e-05/0.3508, allocations: 38.81 kB / 431.4 MB, free: 5.309 MB / 350.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.000544/0.3514, allocations: 297.6 kB / 431.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002891/0.3517, allocations: 210.7 kB / 431.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002172/0.3538, allocations: 1.084 MB / 433 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.3539, allocations: 11.98 kB / 433 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3539, allocations: 0 / 433 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3539, allocations: 7.984 kB / 433 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.3551, allocations: 0.9834 MB / 434 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001028/0.3552, allocations: 68 kB / 434 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003485/0.3556, allocations: 51.94 kB / 434.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.3566, allocations: 0.675 MB / 434.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.315e-05/0.3567, allocations: 15.94 kB / 434.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.3579, allocations: 1.098 MB / 435.9 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.3579, allocations: 4 kB / 435.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.3604, allocations: 1.356 MB / 437.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005481/0.361, allocations: 295.6 kB / 437.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.3612, allocations: 12 kB / 437.5 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000502/0.3617, allocations: 31.95 kB / 437.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.3618, allocations: 52.38 kB / 437.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.261e-05/0.3619, allocations: 27.94 kB / 437.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001209/0.3631, allocations: 0.9488 MB / 438.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.733e-06/0.3631, allocations: 0 / 438.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001047/0.3642, allocations: 434.9 kB / 439 MB, free: 13.5 MB / 366.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.003526/0.3677, allocations: 2.279 MB / 441.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.3698, allocations: 0.8545 MB / 442.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3698, allocations: 0 / 442.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.371, allocations: 0.5291 MB / 442.7 MB, free: 9.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.372, allocations: 187.8 kB / 442.9 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/0.3884, allocations: 10.78 MB / 453.6 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006809/0.3891, allocations: 1.216 MB / 454.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004704/0.3896, allocations: 162.1 kB / 455 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006179/0.3902, allocations: 0.6204 MB / 455.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.373e-06/0.3902, allocations: 4 kB / 455.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08609/0.4763, allocations: 32.52 MB / 488.2 MB, free: 11.83 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.12/15.6, allocations: 0 / 488.2 MB, free: 11.83 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkDifferentialPair/Spice3BenchmarkDifferentialPair.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches