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.001311/0.001311, allocations: 107.8 kB / 17.06 MB, free: 5.828 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.001327/0.001327, 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.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000981/0.000981, allocations: 51.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2707, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01298/0.2837, allocations: 14.7 MB / 414.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02432/0.3081, allocations: 20.68 MB / 435.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003349/0.3115, allocations: 91.25 kB / 435.7 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003641/0.3152, allocations: 1.239 MB / 436.9 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008216/0.3234, allocations: 2.317 MB / 439.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005932/0.3294, allocations: 1.443 MB / 440.7 MB, free: 192 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.3397, allocations: 6.485 MB / 447.2 MB, free: 9.676 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.3408, allocations: 453.1 kB / 447.6 MB, free: 9.207 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001846/0.3426, allocations: 1.116 MB / 448.7 MB, free: 8.086 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001737/0.3444, allocations: 1.102 MB / 449.8 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004597/0.3449, allocations: 76 kB / 449.9 MB, free: 6.902 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005674/0.3506, allocations: 1.479 MB / 451.4 MB, free: 5.426 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004979/0.3511, allocations: 329.6 kB / 451.7 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001759/0.3528, allocations: 1.37 MB / 453.1 MB, free: 3.723 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005942/0.3588, allocations: 3.791 MB / 456.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3588, allocations: 0 / 456.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3588, allocations: 0 / 456.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001492/0.359, allocations: 0 / 456.9 MB, free: 15.91 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.006344/0.3654, allocations: 3.802 MB / 460.7 MB, free: 12.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.3654, allocations: 12.03 kB / 460.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/0.3655, allocations: 98.44 kB / 460.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004601/0.366, allocations: 417.4 kB / 461.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003454/0.3695, allocations: 2.453 MB / 463.7 MB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.3695, allocations: 37 kB / 463.7 MB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.3697, allocations: 59.89 kB / 463.7 MB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.371, allocations: 0.7265 MB / 464.5 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.371, allocations: 0 / 464.5 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.45e-05/0.3711, allocations: 19.98 kB / 464.5 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/0.3712, allocations: 16 kB / 464.5 MB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.3727, allocations: 0.8241 MB / 465.3 MB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005225/0.3779, allocations: 3.056 MB / 468.4 MB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.3791, allocations: 0.5751 MB / 469 MB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009342/0.3801, allocations: 0.6484 MB / 469.6 MB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0296/0.4097, allocations: 30.12 MB / 499.7 MB, free: 0.6875 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007718/0.4105, allocations: 369.7 kB / 0.4884 GB, free: 324 kB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.226e-06/0.4105, allocations: 0 / 0.4884 GB, free: 324 kB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002484/0.413, allocations: 1.11 MB / 0.4895 GB, free: 15.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.4131, allocations: 59.41 kB / 0.4895 GB, free: 15.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00383/0.4169, allocations: 2.931 MB / 0.4924 GB, free: 12.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.614e-05/0.417, allocations: 37.7 kB / 0.4924 GB, free: 12.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/0.4184, allocations: 1.495 MB / 0.4939 GB, free: 10.64 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.4186, allocations: 178.6 kB / 0.494 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003364/0.4189, allocations: 226.4 kB / 0.4943 GB, free: 10.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4191, allocations: 345.9 kB / 0.4946 GB, free: 9.891 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006044/0.4197, allocations: 237.9 kB / 0.4948 GB, free: 9.66 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008262/0.4205, allocations: 0.602 MB / 0.4954 GB, free: 8.883 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.422, allocations: 0.9012 MB / 0.4963 GB, free: 7.809 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/0.422, allocations: 4 kB / 0.4963 GB, free: 7.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002419/0.4244, allocations: 1.239 MB / 0.4975 GB, free: 6.562 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.4245, allocations: 12 kB / 0.4975 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/0.4246, allocations: 87.98 kB / 0.4976 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.105e-05/0.4247, allocations: 16 kB / 0.4976 GB, free: 6.449 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007193/0.4254, allocations: 203.6 kB / 0.4978 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.084e-05/0.4254, allocations: 24.25 kB / 0.4978 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/0.4266, allocations: 123.1 kB / 0.4979 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.4267, allocations: 68 kB / 0.498 GB, free: 6.039 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.0007681/0.4275, allocations: 429.1 kB / 0.4984 GB, free: 5.613 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000395/0.4279, allocations: 397.5 kB / 0.4988 GB, free: 5.223 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002515/0.4304, allocations: 1.201 MB / 0.5 GB, free: 4.004 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.4304, allocations: 4 kB / 0.5 GB, free: 4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.4304, allocations: 0 / 0.5 GB, free: 4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.413e-06/0.4305, allocations: 3.984 kB / 0.5 GB, free: 3.996 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003273/0.4337, allocations: 2.089 MB / 0.502 GB, free: 1.836 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-05/0.4338, allocations: 68 kB / 0.5021 GB, free: 1.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004749/0.4343, allocations: 99.92 kB / 0.5022 GB, free: 1.672 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.4343, allocations: 0 / 0.5022 GB, free: 1.672 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.662e-05/0.4344, allocations: 39.97 kB / 0.5022 GB, free: 1.633 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.4344, allocations: 4 kB / 0.5022 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4344, allocations: 0 / 0.5022 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.4366, allocations: 1.323 MB / 0.5035 GB, free: 284 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007807/0.4373, allocations: 0.4907 MB / 0.504 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002913/0.4376, allocations: 8 kB / 0.504 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007067/0.4384, allocations: 27.95 kB / 0.504 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.4385, allocations: 63.7 kB / 0.5041 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-05/0.4386, allocations: 39.98 kB / 0.5041 GB, free: 15.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002343/0.4409, allocations: 1.903 MB / 0.506 GB, free: 13.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4409, allocations: 4.062 kB / 0.506 GB, free: 13.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00135/0.4423, allocations: 0.5891 MB / 0.5066 GB, free: 13.13 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.003566/0.4459, allocations: 2.542 MB / 0.509 GB, free: 10.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.4475, allocations: 0.813 MB / 0.5098 GB, free: 9.723 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4475, allocations: 0 / 0.5098 GB, free: 9.723 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007345/0.4483, allocations: 448 kB / 0.5103 GB, free: 9.262 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00248/0.4508, allocations: 0.6075 MB / 0.5109 GB, free: 8.648 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/0.4726, allocations: 16.45 MB / 0.5269 GB, free: 7.668 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.4737, allocations: 1.665 MB / 0.5286 GB, free: 5.977 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001016/0.4747, allocations: 357.1 kB / 0.5289 GB, free: 5.621 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/0.4759, allocations: 1.218 MB / 0.5301 GB, free: 4.402 MB / 462.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4759, allocations: 0 / 0.5301 GB, free: 4.402 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3087/0.7846, allocations: 60.72 MB / 0.5894 GB, free: 88.99 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.97/15.76, allocations: 15.91 kB / 0.5894 GB, free: 88.98 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