Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",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.001263/0.001263, allocations: 113.4 kB / 17.72 MB, free: 5.445 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.00121/0.001211, allocations: 184.1 kB / 18.65 MB, free: 4.52 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.368/1.368, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001955/0.001955, allocations: 55.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09089/0.09286, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1889/0.2818, allocations: 25.35 MB / 400 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03116/0.313, allocations: 21.32 MB / 421.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007537/0.3206, allocations: 183 kB / 421.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005813/0.3265, allocations: 1.728 MB / 423.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01229/0.3388, allocations: 3.163 MB / 426.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006289/0.3451, allocations: 1.574 MB / 428 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02228/0.3674, allocations: 12.38 MB / 440.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001771/0.3692, allocations: 0.8671 MB / 441.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003489/0.3727, allocations: 1.874 MB / 443.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003427/0.3762, allocations: 2.057 MB / 445.1 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005057/0.3767, allocations: 136 kB / 445.3 MB, free: 9.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004744/0.3815, allocations: 1.214 MB / 446.5 MB, free: 7.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007253/0.3822, allocations: 0.6049 MB / 447.1 MB, free: 7.262 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003922/0.3861, allocations: 2.639 MB / 449.7 MB, free: 4.605 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01134/0.3975, allocations: 6.714 MB / 456.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3975, allocations: 0 / 456.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3975, allocations: 3.938 kB / 456.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000192/0.3977, allocations: 0 / 456.4 MB, free: 13.86 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01069/0.4084, allocations: 6.981 MB / 463.4 MB, free: 6.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.4085, allocations: 12.03 kB / 463.4 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002048/0.4087, allocations: 161.2 kB / 463.6 MB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000995/0.4097, allocations: 0.7841 MB / 464.4 MB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007111/0.4168, allocations: 4.695 MB / 469.1 MB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.431e-05/0.4169, allocations: 66 kB / 469.1 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/0.4172, allocations: 99.94 kB / 469.2 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002299/0.4195, allocations: 1.298 MB / 470.5 MB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.4195, allocations: 4 kB / 470.5 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.4196, allocations: 39.94 kB / 470.6 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.135e-05/0.4197, allocations: 39.92 kB / 470.6 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002679/0.4224, allocations: 1.484 MB / 472.1 MB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/0.4328, allocations: 5.648 MB / 477.7 MB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/0.4348, allocations: 0.989 MB / 478.7 MB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/0.4365, allocations: 1.23 MB / 480 MB, free: 6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06335/0.4999, allocations: 59.93 MB / 0.5272 GB, free: 1.883 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.5011, allocations: 0.5559 MB / 0.5278 GB, free: 1.32 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.005e-06/0.5011, allocations: 4 kB / 0.5278 GB, free: 1.316 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.00416/0.5053, allocations: 1.914 MB / 0.5297 GB, free: 15.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/0.5054, allocations: 59.97 kB / 0.5297 GB, free: 15.32 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009557/0.5149, allocations: 5.636 MB / 0.5352 GB, free: 9.715 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002142/0.5152, allocations: 37.7 kB / 0.5353 GB, free: 9.672 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003096/0.5183, allocations: 2.961 MB / 0.5382 GB, free: 6.699 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005643/0.5189, allocations: 309.4 kB / 0.5384 GB, free: 6.395 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006211/0.5195, allocations: 423 kB / 0.5388 GB, free: 5.977 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.5196, allocations: 309.1 kB / 0.5391 GB, free: 5.672 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009415/0.5206, allocations: 399.8 kB / 0.5395 GB, free: 5.281 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.522, allocations: 1.091 MB / 0.5406 GB, free: 3.855 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002525/0.5246, allocations: 1.615 MB / 0.5422 GB, free: 1.91 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/0.5246, allocations: 8 kB / 0.5422 GB, free: 1.902 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.171/0.6956, allocations: 2.244 MB / 0.5444 GB, free: 156.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.6956, allocations: 18.72 kB / 0.5444 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002592/0.6959, allocations: 163.9 kB / 0.5445 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.964e-05/0.6959, allocations: 34 kB / 0.5446 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.6972, allocations: 351.1 kB / 0.5449 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.708e-05/0.6973, allocations: 49.22 kB / 0.545 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001901/0.6992, allocations: 195 kB / 0.5451 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002142/0.6994, allocations: 125.6 kB / 0.5453 GB, free: 156.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001288/0.7007, allocations: 0.7223 MB / 0.546 GB, free: 156.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008118/0.7015, allocations: 0.7544 MB / 0.5467 GB, free: 156.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004284/0.7058, allocations: 2.176 MB / 0.5488 GB, free: 156 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.7058, allocations: 7.469 kB / 0.5488 GB, free: 156 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.7059, allocations: 4.906 kB / 0.5488 GB, free: 156 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.7059, allocations: 3.844 kB / 0.5488 GB, free: 156 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005513/0.7114, allocations: 3.623 MB / 0.5524 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001703/0.7116, allocations: 141.1 kB / 0.5525 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007594/0.7123, allocations: 154.7 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.7124, allocations: 8.391 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.7125, allocations: 61.44 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.7125, allocations: 3.547 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.7125, allocations: 5.281 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003439/0.7159, allocations: 2.195 MB / 0.5549 GB, free: 154.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001341/0.7173, allocations: 0.8649 MB / 0.5557 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005462/0.7178, allocations: 17.31 kB / 0.5557 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.7189, allocations: 36.11 kB / 0.5558 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/0.7192, allocations: 97.89 kB / 0.5559 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.7193, allocations: 70.91 kB / 0.5559 GB, free: 154 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00549/0.7248, allocations: 3.631 MB / 0.5595 GB, free: 152.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7248, allocations: 3.344 kB / 0.5595 GB, free: 152.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002667/0.7275, allocations: 1.091 MB / 0.5606 GB, free: 152.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.005108/0.7326, allocations: 3.857 MB / 0.5643 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002325/0.7349, allocations: 1.436 MB / 0.5657 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.735, allocations: 0 / 0.5657 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.736, allocations: 0.7672 MB / 0.5665 GB, free: 150.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003546/0.7395, allocations: 1.004 MB / 0.5675 GB, free: 149.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03924/0.7788, allocations: 30.74 MB / 0.5975 GB, free: 122.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.7801, allocations: 2.6 MB / 0.6 GB, free: 120.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001907/0.782, allocations: 0.6927 MB / 0.6007 GB, free: 119.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001621/0.7837, allocations: 2.409 MB / 0.603 GB, free: 117.2 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7837, allocations: 0 / 0.603 GB, free: 117.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.148/0.9317, allocations: 111.6 MB / 0.712 GB, free: 5.355 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.19/27.12, allocations: 7.875 kB / 0.712 GB, free: 5.348 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches