Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.001655/0.001655, allocations: 113.9 kB / 17.07 MB, free: 5.988 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.001692/0.001693, allocations: 197.3 kB / 18 MB, free: 5.066 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 43.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.262, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01611/0.2782, allocations: 15.3 MB / 415.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02598/0.3042, allocations: 20.74 MB / 436.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002849/0.3071, allocations: 95.25 kB / 436.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003828/0.3109, allocations: 1.262 MB / 437.6 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008425/0.3194, allocations: 2.344 MB / 440 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005194/0.3247, allocations: 1.432 MB / 441.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01168/0.3364, allocations: 6.609 MB / 448 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001012/0.3374, allocations: 473.5 kB / 448.5 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.3394, allocations: 1.116 MB / 449.6 MB, free: 7.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00157/0.341, allocations: 1.149 MB / 450.7 MB, free: 6.074 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002047/0.3412, allocations: 76 kB / 450.8 MB, free: 6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004189/0.3454, allocations: 1.475 MB / 452.3 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004308/0.3458, allocations: 333.5 kB / 452.6 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001617/0.3475, allocations: 1.428 MB / 454 MB, free: 2.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00642/0.3539, allocations: 4.001 MB / 458 MB, free: 14.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.3539, allocations: 3.938 kB / 458 MB, free: 14.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3539, allocations: 7.938 kB / 458.1 MB, free: 14.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.83e-05/0.354, allocations: 0 / 458.1 MB, free: 14.73 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005986/0.36, allocations: 3.962 MB / 462 MB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.3601, allocations: 12.02 kB / 462 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/0.3602, allocations: 98.52 kB / 462.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005446/0.3608, allocations: 437.2 kB / 462.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0037/0.3645, allocations: 2.51 MB / 465.1 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.092e-05/0.3645, allocations: 33 kB / 465.1 MB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.3647, allocations: 55.95 kB / 465.2 MB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.3661, allocations: 0.7304 MB / 465.9 MB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.3661, allocations: 0 / 465.9 MB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.022e-05/0.3662, allocations: 20 kB / 465.9 MB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/0.3662, allocations: 23.98 kB / 465.9 MB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.3679, allocations: 0.8124 MB / 466.7 MB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005698/0.3736, allocations: 3.099 MB / 469.8 MB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.3749, allocations: 0.5829 MB / 470.4 MB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.376, allocations: 0.6367 MB / 471.1 MB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03197/0.408, allocations: 30.14 MB / 0.4895 GB, free: 15.22 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007702/0.4088, allocations: 361.6 kB / 0.4898 GB, free: 14.86 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.826e-06/0.4088, allocations: 0 / 0.4898 GB, free: 14.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002483/0.4113, allocations: 1.13 MB / 0.4909 GB, free: 13.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.4113, allocations: 63.41 kB / 0.491 GB, free: 13.64 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004243/0.4156, allocations: 3.087 MB / 0.494 GB, free: 10.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.4157, allocations: 37.7 kB / 0.494 GB, free: 10.51 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.4173, allocations: 1.586 MB / 0.4956 GB, free: 8.918 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000229/0.4175, allocations: 170.6 kB / 0.4957 GB, free: 8.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003304/0.4179, allocations: 230.3 kB / 0.4959 GB, free: 8.52 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.418, allocations: 341.9 kB / 0.4963 GB, free: 8.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006299/0.4187, allocations: 241.9 kB / 0.4965 GB, free: 7.945 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009058/0.4196, allocations: 0.6098 MB / 0.4971 GB, free: 7.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.4212, allocations: 0.8973 MB / 0.498 GB, free: 6.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.4212, allocations: 8 kB / 0.498 GB, free: 6.082 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002358/0.4236, allocations: 1.255 MB / 0.4992 GB, free: 4.824 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.4236, allocations: 22.84 kB / 0.4992 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/0.4237, allocations: 83.98 kB / 0.4993 GB, free: 4.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.109e-05/0.4238, allocations: 16 kB / 0.4993 GB, free: 4.707 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007248/0.4245, allocations: 199.7 kB / 0.4995 GB, free: 4.512 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.732e-05/0.4245, allocations: 23.88 kB / 0.4995 GB, free: 4.488 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000987/0.4255, allocations: 111.3 kB / 0.4996 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.4257, allocations: 71.98 kB / 0.4997 GB, free: 4.309 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000831/0.4265, allocations: 453.4 kB / 0.5001 GB, free: 3.855 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004856/0.427, allocations: 421.3 kB / 0.5005 GB, free: 3.441 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002788/0.4298, allocations: 1.215 MB / 0.5017 GB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.4298, allocations: 4 kB / 0.5017 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4298, allocations: 0 / 0.5017 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.4298, allocations: 3.984 kB / 0.5017 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003585/0.4334, allocations: 2.143 MB / 0.5038 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.489e-05/0.4335, allocations: 67.94 kB / 0.5039 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000489/0.434, allocations: 91.86 kB / 0.504 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.434, allocations: 12 kB / 0.504 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.228e-05/0.4341, allocations: 35.98 kB / 0.504 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.4341, allocations: 0 / 0.504 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4341, allocations: 3.984 kB / 0.504 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002392/0.4365, allocations: 1.343 MB / 0.5053 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007672/0.4373, allocations: 0.5021 MB / 0.5058 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002748/0.4376, allocations: 16.05 kB / 0.5058 GB, free: 13.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006327/0.4382, allocations: 31.97 kB / 0.5059 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.4384, allocations: 59.89 kB / 0.5059 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.443e-05/0.4385, allocations: 39.98 kB / 0.506 GB, free: 13.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002817/0.4413, allocations: 2.01 MB / 0.5079 GB, free: 11.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4413, allocations: 0 / 0.5079 GB, free: 11.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001391/0.4427, allocations: 0.593 MB / 0.5085 GB, free: 11.14 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003861/0.4466, allocations: 2.573 MB / 0.511 GB, free: 8.539 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.4483, allocations: 0.806 MB / 0.5118 GB, free: 7.711 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4483, allocations: 4 kB / 0.5118 GB, free: 7.707 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007845/0.4491, allocations: 446.9 kB / 0.5122 GB, free: 7.246 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/0.4518, allocations: 0.632 MB / 0.5129 GB, free: 6.609 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02564/0.4775, allocations: 17.06 MB / 0.5295 GB, free: 5.035 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/0.4789, allocations: 1.714 MB / 0.5312 GB, free: 3.293 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001148/0.48, allocations: 357.3 kB / 0.5315 GB, free: 2.938 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001438/0.4815, allocations: 1.265 MB / 0.5328 GB, free: 1.672 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4815, allocations: 7.938 kB / 0.5328 GB, free: 1.664 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.28/0.7615, allocations: 62.87 MB / 0.5942 GB, free: 84.13 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.76/16.53, allocations: 19.66 kB / 0.5942 GB, free: 84.12 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches