Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.001241/0.001242, allocations: 107.8 kB / 17.06 MB, free: 5.82 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.001234/0.001234, allocations: 195.9 kB / 18 MB, free: 4.965 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.408/1.408, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001664, allocations: 55.91 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2801, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01656/0.2967, allocations: 14.7 MB / 414.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02793/0.3246, allocations: 20.69 MB / 435.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002941/0.3276, allocations: 87.31 kB / 435.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003844/0.3315, allocations: 1.228 MB / 436.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008521/0.3401, allocations: 2.301 MB / 439.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005398/0.3455, allocations: 1.432 MB / 440.7 MB, free: 228 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01142/0.357, allocations: 6.493 MB / 447.2 MB, free: 9.707 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.3581, allocations: 453.1 kB / 447.6 MB, free: 9.238 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002158/0.3603, allocations: 1.085 MB / 448.7 MB, free: 8.148 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001849/0.3622, allocations: 1.11 MB / 449.8 MB, free: 7.031 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002563/0.3624, allocations: 76 kB / 449.9 MB, free: 6.957 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004437/0.3669, allocations: 1.475 MB / 451.3 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004951/0.3674, allocations: 337.5 kB / 451.7 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001891/0.3693, allocations: 1.366 MB / 453 MB, free: 3.773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007503/0.3768, allocations: 3.787 MB / 456.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.3769, allocations: 0 / 456.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3769, allocations: 4 kB / 456.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000126/0.377, allocations: 0 / 456.8 MB, free: 15.96 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.006616/0.3836, allocations: 3.805 MB / 460.6 MB, free: 12.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.3837, allocations: 12.02 kB / 460.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001505/0.3839, allocations: 94.52 kB / 460.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006573/0.3845, allocations: 413.4 kB / 461.1 MB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00402/0.3886, allocations: 2.453 MB / 463.6 MB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.3886, allocations: 37 kB / 463.6 MB, free: 9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.3888, allocations: 63.88 kB / 463.7 MB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.3903, allocations: 0.7265 MB / 464.4 MB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.3903, allocations: 0 / 464.4 MB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-05/0.3904, allocations: 16 kB / 464.4 MB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.076e-05/0.3904, allocations: 27.92 kB / 464.5 MB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.392, allocations: 0.8163 MB / 465.3 MB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005848/0.3979, allocations: 3.052 MB / 468.3 MB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.3992, allocations: 0.5713 MB / 468.9 MB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001085/0.4003, allocations: 0.6484 MB / 469.6 MB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03369/0.434, allocations: 30.13 MB / 499.7 MB, free: 0.7383 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008265/0.4349, allocations: 361.7 kB / 0.4883 GB, free: 384 kB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 6.512e-06/0.4349, allocations: 4 kB / 0.4883 GB, free: 380 kB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002743/0.4377, allocations: 1.11 MB / 0.4894 GB, free: 15.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/0.4378, allocations: 59.41 kB / 0.4895 GB, free: 15.18 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004372/0.4422, allocations: 2.931 MB / 0.4923 GB, free: 12.24 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.4423, allocations: 37.7 kB / 0.4924 GB, free: 12.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/0.4438, allocations: 1.502 MB / 0.4938 GB, free: 10.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002367/0.4441, allocations: 170.6 kB / 0.494 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003466/0.4444, allocations: 226.4 kB / 0.4942 GB, free: 10.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.4446, allocations: 341.9 kB / 0.4945 GB, free: 9.949 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006456/0.4453, allocations: 245.8 kB / 0.4948 GB, free: 9.711 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000917/0.4462, allocations: 0.5942 MB / 0.4953 GB, free: 8.941 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.4478, allocations: 0.909 MB / 0.4962 GB, free: 7.859 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.4478, allocations: 4 kB / 0.4962 GB, free: 7.855 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002574/0.4504, allocations: 1.247 MB / 0.4975 GB, free: 6.605 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.228e-05/0.4504, allocations: 8 kB / 0.4975 GB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001292/0.4505, allocations: 80 kB / 0.4975 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.969e-05/0.4506, allocations: 20 kB / 0.4976 GB, free: 6.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007522/0.4514, allocations: 203.6 kB / 0.4978 GB, free: 6.301 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.591e-05/0.4514, allocations: 23.92 kB / 0.4978 GB, free: 6.277 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.4527, allocations: 119.3 kB / 0.4979 GB, free: 6.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.4528, allocations: 64 kB / 0.4979 GB, free: 6.098 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.0009192/0.4537, allocations: 437.4 kB / 0.4984 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006831/0.4544, allocations: 393.5 kB / 0.4987 GB, free: 5.273 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002966/0.4574, allocations: 1.198 MB / 0.4999 GB, free: 4.059 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.4574, allocations: 7.938 kB / 0.4999 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4574, allocations: 0 / 0.4999 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.4574, allocations: 0 / 0.4999 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004345/0.4618, allocations: 2.093 MB / 0.502 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001024/0.4619, allocations: 71.98 kB / 0.502 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005113/0.4624, allocations: 95.92 kB / 0.5021 GB, free: 1.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.4625, allocations: 0 / 0.5021 GB, free: 1.723 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-05/0.4625, allocations: 36 kB / 0.5022 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.4626, allocations: 0 / 0.5022 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.4626, allocations: 7.922 kB / 0.5022 GB, free: 1.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002655/0.4652, allocations: 1.311 MB / 0.5034 GB, free: 348 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/0.4663, allocations: 0.4947 MB / 0.5039 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004976/0.4668, allocations: 11.94 kB / 0.5039 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008582/0.4677, allocations: 31.97 kB / 0.504 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.4679, allocations: 67.62 kB / 0.504 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.825e-05/0.468, allocations: 36 kB / 0.5041 GB, free: 15.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004579/0.4726, allocations: 1.907 MB / 0.5059 GB, free: 13.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4726, allocations: 4 kB / 0.5059 GB, free: 13.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002204/0.4748, allocations: 0.5891 MB / 0.5065 GB, free: 13.18 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.004525/0.4794, allocations: 2.538 MB / 0.509 GB, free: 10.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.4812, allocations: 0.8136 MB / 0.5098 GB, free: 9.773 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4812, allocations: 0 / 0.5098 GB, free: 9.773 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008414/0.4821, allocations: 447 kB / 0.5102 GB, free: 9.312 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003415/0.4855, allocations: 0.6078 MB / 0.5108 GB, free: 8.699 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03131/0.5168, allocations: 16.45 MB / 0.5269 GB, free: 7.719 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001669/0.5185, allocations: 1.661 MB / 0.5285 GB, free: 6.031 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001181/0.5197, allocations: 357.2 kB / 0.5288 GB, free: 5.676 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/0.5213, allocations: 1.21 MB / 0.53 GB, free: 4.465 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5213, allocations: 4 kB / 0.53 GB, free: 4.461 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2849/0.8062, allocations: 60.73 MB / 0.5893 GB, free: 88.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.3/16.11, allocations: 13.97 kB / 0.5893 GB, free: 88.92 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_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_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches