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.001482/0.001482, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001667/0.001667, allocations: 183 kB / 18.66 MB, free: 4.414 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.334/1.334, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001853/0.001853, allocations: 52.34 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07783/0.0797, allocations: 46.61 MB / 374.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair): time 0.1821/0.2618, allocations: 8.171 MB / 382.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.2724, allocations: 10.95 MB / 393.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001465/0.2739, allocations: 54.94 kB / 393.8 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002292/0.2762, allocations: 0.8244 MB / 394.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004613/0.2808, allocations: 1.219 MB / 395.9 MB, free: 216 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002278/0.2831, allocations: 0.6871 MB / 396.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004473/0.2876, allocations: 2.645 MB / 399.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005361/0.2882, allocations: 354.8 kB / 399.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009053/0.2891, allocations: 0.5327 MB / 400.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007453/0.2899, allocations: 0.6131 MB / 400.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.29, allocations: 71.38 kB / 400.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002086/0.2921, allocations: 0.715 MB / 401.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.2923, allocations: 216.9 kB / 401.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007558/0.2931, allocations: 0.7677 MB / 402.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002604/0.2957, allocations: 2.117 MB / 404.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2957, allocations: 1.312 kB / 404.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2957, allocations: 0 / 404.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.63e-05/0.2957, 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.003928/0.2997, allocations: 2.216 MB / 406.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.2997, allocations: 12.31 kB / 406.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.2999, allocations: 104 kB / 406.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002794/0.3002, allocations: 218.2 kB / 407.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001843/0.302, allocations: 1.302 MB / 408.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.3021, allocations: 43.38 kB / 408.5 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3022, allocations: 55.08 kB / 408.5 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.3035, allocations: 0.6874 MB / 409.2 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.3035, allocations: 0 / 409.2 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.226e-05/0.3036, allocations: 24.8 kB / 409.2 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/0.3036, allocations: 17.22 kB / 409.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.3049, allocations: 0.5728 MB / 409.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003663/0.3086, allocations: 2.512 MB / 412.3 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.3099, allocations: 0.6212 MB / 413 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008969/0.3108, allocations: 0.5379 MB / 413.5 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008801/0.3196, allocations: 7.489 MB / 421 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007881/0.3204, allocations: 381.3 kB / 421.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.544e-06/0.3204, allocations: 0 / 421.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.005815/0.3263, allocations: 2.094 MB / 423.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.3263, allocations: 85.55 kB / 423.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.3281, allocations: 1.439 MB / 425 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.743e-05/0.3282, allocations: 41.64 kB / 425 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006293/0.3288, allocations: 0.7938 MB / 425.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.329, allocations: 224.8 kB / 426 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.3292, allocations: 134.6 kB / 426.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.3293, allocations: 349.9 kB / 426.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000584/0.3299, allocations: 253.8 kB / 426.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007817/0.3307, allocations: 458.2 kB / 427.2 MB, free: 9.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.332, allocations: 0.7324 MB / 427.9 MB, free: 8.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.332, allocations: 0 / 427.9 MB, free: 8.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002068/0.3341, allocations: 1.136 MB / 429.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.3341, allocations: 8 kB / 429.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001067/0.3343, allocations: 72 kB / 429.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.3354, allocations: 0.6955 MB / 429.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004477/0.3359, allocations: 116.3 kB / 429.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.3372, allocations: 1.128 MB / 431.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009335/0.3382, allocations: 83.31 kB / 431.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-05/0.3382, allocations: 42.23 kB / 431.2 MB, free: 5.453 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.0005475/0.3388, allocations: 293.6 kB / 431.5 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002494/0.339, allocations: 201.6 kB / 431.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/0.3413, allocations: 1.086 MB / 432.8 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.3413, allocations: 19.91 kB / 432.8 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3413, allocations: 3.938 kB / 432.8 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3414, allocations: 4 kB / 432.8 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.3426, allocations: 0.9794 MB / 433.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000101/0.3427, allocations: 68 kB / 433.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003275/0.3431, allocations: 56.75 kB / 433.9 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.3441, allocations: 0.6672 MB / 434.6 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.794e-05/0.3441, allocations: 27.92 kB / 434.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.3454, allocations: 1.1 MB / 435.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3454, allocations: 0 / 435.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/0.3478, allocations: 1.344 MB / 437 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004883/0.3483, allocations: 282.5 kB / 437.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.3485, allocations: 15.94 kB / 437.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004615/0.349, allocations: 35.95 kB / 437.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3491, allocations: 52.38 kB / 437.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-05/0.3492, allocations: 27.98 kB / 437.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.3503, allocations: 0.941 MB / 438.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3503, allocations: 0 / 438.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009884/0.3513, allocations: 427.4 kB / 438.8 MB, free: 13.67 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.003512/0.3548, allocations: 2.263 MB / 441.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002012/0.3568, allocations: 0.8659 MB / 441.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3569, allocations: 0 / 441.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.358, allocations: 0.5253 MB / 442.4 MB, free: 9.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008367/0.3589, allocations: 186.6 kB / 442.6 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01563/0.3745, allocations: 10.7 MB / 453.3 MB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008248/0.3754, allocations: 1.212 MB / 454.5 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004521/0.3759, allocations: 166.1 kB / 454.7 MB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000639/0.3765, allocations: 0.6282 MB / 455.3 MB, free: 12.7 MB / 382.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3765, allocations: 4 kB / 455.3 MB, free: 12.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06186/0.4384, allocations: 32.51 MB / 487.9 MB, free: 12.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.67/15.11, allocations: 4.062 kB / 487.9 MB, free: 12.09 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