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.00109/0.00109, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001053/0.001053, allocations: 200 kB / 18.01 MB, free: 5.047 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.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2899, allocations: 49.43 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01448/0.3044, allocations: 14.72 MB / 414.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0278/0.3323, allocations: 20.68 MB / 435.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003208/0.3355, allocations: 83.31 kB / 435.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003732/0.3393, allocations: 1.243 MB / 436.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008136/0.3475, allocations: 2.317 MB / 439.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004803/0.3523, allocations: 1.443 MB / 440.7 MB, free: 156 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01058/0.3629, allocations: 6.489 MB / 447.2 MB, free: 9.641 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008303/0.3638, allocations: 453.1 kB / 447.6 MB, free: 9.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001667/0.3655, allocations: 1.108 MB / 448.7 MB, free: 8.059 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001305/0.3668, allocations: 1.11 MB / 449.9 MB, free: 6.941 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001685/0.367, allocations: 76 kB / 449.9 MB, free: 6.867 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004637/0.3716, allocations: 1.483 MB / 451.4 MB, free: 5.383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003529/0.372, allocations: 329.6 kB / 451.7 MB, free: 5.059 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001431/0.3734, allocations: 1.366 MB / 453.1 MB, free: 3.684 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00637/0.3798, allocations: 3.783 MB / 456.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.909e-06/0.3799, allocations: 4 kB / 456.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3799, allocations: 0 / 456.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.354e-05/0.3799, allocations: 0 / 456.9 MB, free: 15.88 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.005506/0.3854, allocations: 3.805 MB / 460.7 MB, free: 11.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.3855, allocations: 12.03 kB / 460.7 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.3856, allocations: 94.52 kB / 460.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004619/0.3861, allocations: 425.3 kB / 461.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003236/0.3894, allocations: 2.453 MB / 463.7 MB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.169e-05/0.3894, allocations: 37 kB / 463.7 MB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.3895, allocations: 59.94 kB / 463.8 MB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.3909, allocations: 0.7265 MB / 464.5 MB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.3909, allocations: 0 / 464.5 MB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.418e-05/0.391, allocations: 20 kB / 464.5 MB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.071e-05/0.391, allocations: 23.98 kB / 464.5 MB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.3926, allocations: 0.8124 MB / 465.3 MB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005113/0.3977, allocations: 3.056 MB / 468.4 MB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.399, allocations: 0.5713 MB / 469 MB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009945/0.4, allocations: 0.6445 MB / 469.6 MB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02839/0.4284, allocations: 30.13 MB / 499.7 MB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007517/0.4292, allocations: 361.7 kB / 0.4884 GB, free: 284 kB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/0.4292, allocations: 0 / 0.4884 GB, free: 284 kB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002299/0.4315, allocations: 1.11 MB / 0.4895 GB, free: 15.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.4315, allocations: 67.39 kB / 0.4895 GB, free: 15.08 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003387/0.4349, allocations: 2.927 MB / 0.4924 GB, free: 12.14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.555e-05/0.435, allocations: 37.7 kB / 0.4924 GB, free: 12.1 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.4362, allocations: 1.498 MB / 0.4939 GB, free: 10.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.4363, allocations: 174.6 kB / 0.494 GB, free: 10.42 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002813/0.4366, allocations: 230.4 kB / 0.4943 GB, free: 10.19 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4367, allocations: 337.9 kB / 0.4946 GB, free: 9.852 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.4373, allocations: 245.8 kB / 0.4948 GB, free: 9.613 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007694/0.4381, allocations: 0.5942 MB / 0.4954 GB, free: 8.844 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.4395, allocations: 0.9051 MB / 0.4963 GB, free: 7.766 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.4395, allocations: 4 kB / 0.4963 GB, free: 7.762 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002148/0.4417, allocations: 1.243 MB / 0.4975 GB, free: 6.516 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.4417, allocations: 12 kB / 0.4975 GB, free: 6.504 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/0.4418, allocations: 84 kB / 0.4976 GB, free: 6.422 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.799e-05/0.4419, allocations: 16 kB / 0.4976 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007131/0.4426, allocations: 200 kB / 0.4978 GB, free: 6.211 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.406e-05/0.4426, allocations: 27.92 kB / 0.4978 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009186/0.4435, allocations: 119.2 kB / 0.4979 GB, free: 6.066 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.797e-05/0.4437, allocations: 64 kB / 0.498 GB, free: 6.004 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.0006968/0.4444, allocations: 437.4 kB / 0.4984 GB, free: 5.566 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000357/0.4447, allocations: 397.5 kB / 0.4988 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002513/0.4472, allocations: 1.201 MB / 0.5 GB, free: 3.957 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.4473, allocations: 8 kB / 0.5 GB, free: 3.949 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4473, allocations: 0 / 0.5 GB, free: 3.949 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4473, allocations: 0 / 0.5 GB, free: 3.949 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00311/0.4504, allocations: 2.089 MB / 0.502 GB, free: 1.789 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.179e-05/0.4505, allocations: 71.98 kB / 0.5021 GB, free: 1.719 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004781/0.451, allocations: 95.92 kB / 0.5022 GB, free: 1.625 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.451, allocations: 4 kB / 0.5022 GB, free: 1.621 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.4511, allocations: 28 kB / 0.5022 GB, free: 1.594 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.694e-06/0.4511, allocations: 7.984 kB / 0.5022 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4511, allocations: 0 / 0.5022 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002188/0.4533, allocations: 1.319 MB / 0.5035 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007023/0.454, allocations: 0.4946 MB / 0.504 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.4543, allocations: 12 kB / 0.504 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006254/0.4549, allocations: 23.97 kB / 0.504 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.4551, allocations: 67.69 kB / 0.5041 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-05/0.4552, allocations: 36 kB / 0.5041 GB, free: 15.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002453/0.4576, allocations: 1.911 MB / 0.506 GB, free: 13.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4576, allocations: 0 / 0.506 GB, free: 13.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001347/0.459, allocations: 0.5891 MB / 0.5066 GB, free: 13.09 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.003623/0.4626, allocations: 2.538 MB / 0.509 GB, free: 10.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.4642, allocations: 0.8128 MB / 0.5098 GB, free: 9.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4642, allocations: 0 / 0.5098 GB, free: 9.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007477/0.465, allocations: 448.1 kB / 0.5103 GB, free: 9.219 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.4676, allocations: 0.6114 MB / 0.5109 GB, free: 8.602 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0241/0.4917, allocations: 16.46 MB / 0.5269 GB, free: 7.617 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/0.4928, allocations: 1.665 MB / 0.5286 GB, free: 5.926 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001054/0.4939, allocations: 357.1 kB / 0.5289 GB, free: 5.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/0.4951, allocations: 1.21 MB / 0.5301 GB, free: 4.359 MB / 462.1 MB Notification: Performance of SimCode: time 1.713e-06/0.4951, allocations: 0 / 0.5301 GB, free: 4.359 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2841/0.7792, allocations: 60.73 MB / 0.5894 GB, free: 88.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/15.5, allocations: 12.64 kB / 0.5894 GB, free: 88.93 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