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.00145/0.00145, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001745/0.001745, allocations: 194.9 kB / 18.67 MB, free: 4.406 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.382/1.382, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001311/0.001312, allocations: 51.94 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0877/0.08902, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2044/0.2935, allocations: 25.35 MB / 400 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02899/0.3225, allocations: 21.33 MB / 421.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007187/0.3298, allocations: 183.3 kB / 421.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00677/0.3366, allocations: 1.733 MB / 423.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01551/0.3522, allocations: 3.204 MB / 426.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006916/0.3591, allocations: 1.57 MB / 428 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01989/0.379, allocations: 12.39 MB / 440.4 MB, free: 14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.3806, allocations: 0.871 MB / 441.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003367/0.384, allocations: 1.92 MB / 443.2 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002514/0.3866, allocations: 2.053 MB / 445.2 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003318/0.3869, allocations: 136 kB / 445.4 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004264/0.3912, allocations: 1.222 MB / 446.6 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006102/0.3918, allocations: 0.6048 MB / 447.2 MB, free: 7.137 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002784/0.3946, allocations: 2.635 MB / 449.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.4048, allocations: 6.71 MB / 456.5 MB, free: 13.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.4049, allocations: 0 / 456.5 MB, free: 13.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.4049, allocations: 0 / 456.5 MB, free: 13.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001971/0.4051, allocations: 3.984 kB / 456.5 MB, free: 13.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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01327/0.4184, allocations: 6.981 MB / 463.5 MB, free: 6.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.4184, allocations: 12.03 kB / 463.5 MB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002177/0.4187, allocations: 161.2 kB / 463.7 MB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001146/0.4198, allocations: 0.7841 MB / 464.5 MB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008279/0.4281, allocations: 4.691 MB / 469.2 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.228e-05/0.4282, allocations: 69.98 kB / 469.2 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002667/0.4285, allocations: 99.95 kB / 469.3 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/0.4308, allocations: 1.301 MB / 470.6 MB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.4308, allocations: 4.812 kB / 470.6 MB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.431, allocations: 39.94 kB / 470.7 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.524e-05/0.431, allocations: 39.97 kB / 470.7 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002537/0.4335, allocations: 1.488 MB / 472.2 MB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01085/0.4444, allocations: 5.64 MB / 477.8 MB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.4463, allocations: 0.9928 MB / 478.8 MB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001742/0.4481, allocations: 1.218 MB / 480.1 MB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06057/0.5087, allocations: 59.94 MB / 0.5273 GB, free: 1.766 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.5098, allocations: 0.5598 MB / 0.5279 GB, free: 1.199 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.827e-06/0.5098, allocations: 0 / 0.5279 GB, free: 1.199 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.003833/0.5137, allocations: 1.918 MB / 0.5298 GB, free: 15.27 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.5138, allocations: 59.97 kB / 0.5298 GB, free: 15.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008421/0.5222, allocations: 5.632 MB / 0.5353 GB, free: 9.598 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001859/0.5224, allocations: 41.69 kB / 0.5354 GB, free: 9.551 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002479/0.5249, allocations: 2.957 MB / 0.5382 GB, free: 6.582 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003748/0.5253, allocations: 313.4 kB / 0.5385 GB, free: 6.273 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006278/0.5259, allocations: 423 kB / 0.539 GB, free: 5.855 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.668e-05/0.526, allocations: 305.1 kB / 0.5392 GB, free: 5.555 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009067/0.5269, allocations: 407.8 kB / 0.5396 GB, free: 5.156 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.5282, allocations: 1.087 MB / 0.5407 GB, free: 3.734 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002287/0.5305, allocations: 1.611 MB / 0.5423 GB, free: 1.793 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.799e-05/0.5305, allocations: 8 kB / 0.5423 GB, free: 1.785 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.1921/0.7226, allocations: 2.246 MB / 0.5445 GB, free: 156.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.498e-05/0.7227, allocations: 14.72 kB / 0.5445 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002768/0.723, allocations: 164.6 kB / 0.5446 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.698e-05/0.7231, allocations: 33.78 kB / 0.5447 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/0.7245, allocations: 359.6 kB / 0.545 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.465e-05/0.7246, allocations: 56.08 kB / 0.5451 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/0.7269, allocations: 188.6 kB / 0.5452 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003256/0.7273, allocations: 124 kB / 0.5454 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.001631/0.7289, allocations: 0.7155 MB / 0.5461 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/0.7301, allocations: 0.7588 MB / 0.5468 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004769/0.7349, allocations: 2.165 MB / 0.5489 GB, free: 156 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.7349, allocations: 9.141 kB / 0.5489 GB, free: 156 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.086e-06/0.7349, allocations: 3.75 kB / 0.5489 GB, free: 156 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.7349, allocations: 3.844 kB / 0.5489 GB, free: 156 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007014/0.7419, allocations: 3.624 MB / 0.5525 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002102/0.7422, allocations: 140 kB / 0.5526 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008041/0.743, allocations: 153 kB / 0.5528 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/0.743, allocations: 14.22 kB / 0.5528 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.904e-05/0.7431, allocations: 61.56 kB / 0.5528 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.7431, allocations: 4.156 kB / 0.5528 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7432, allocations: 1.25 kB / 0.5528 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003972/0.7471, allocations: 2.203 MB / 0.555 GB, free: 154.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001783/0.7489, allocations: 0.8606 MB / 0.5558 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007807/0.7497, allocations: 14.2 kB / 0.5558 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.7511, allocations: 41.88 kB / 0.5559 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/0.7514, allocations: 98.7 kB / 0.556 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.7515, allocations: 68.88 kB / 0.556 GB, free: 154 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00674/0.7583, allocations: 3.631 MB / 0.5596 GB, free: 152.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.7583, allocations: 0 / 0.5596 GB, free: 152.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003576/0.7619, allocations: 1.093 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.006216/0.7681, allocations: 3.857 MB / 0.5644 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.7708, allocations: 1.437 MB / 0.5658 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.7708, allocations: 0 / 0.5658 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.772, allocations: 0.7709 MB / 0.5666 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.004638/0.7767, allocations: 1.001 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.04348/0.8202, allocations: 30.76 MB / 0.5976 GB, free: 122.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/0.8216, allocations: 2.597 MB / 0.6001 GB, free: 120.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0021/0.8237, allocations: 0.6927 MB / 0.6008 GB, free: 119.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/0.8255, allocations: 2.409 MB / 0.6031 GB, free: 117 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/0.8255, allocations: 0 / 0.6031 GB, free: 117 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1566/0.9821, allocations: 111.6 MB / 0.7121 GB, free: 5.242 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.33/27.32, allocations: 7.875 kB / 0.7121 GB, free: 5.234 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