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.001326/0.001326, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001366/0.001367, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.482/1.482, 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.001721/0.001721, allocations: 51.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1026, allocations: 46.61 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2185/0.3212, allocations: 25.36 MB / 400 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03261/0.3538, allocations: 21.33 MB / 421.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007006/0.3608, allocations: 179.9 kB / 421.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006511/0.3675, allocations: 1.724 MB / 423.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01593/0.3834, allocations: 3.171 MB / 426.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006791/0.3903, allocations: 1.569 MB / 428 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02184/0.4121, allocations: 12.4 MB / 440.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001944/0.4141, allocations: 0.8632 MB / 441.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004058/0.4182, allocations: 1.866 MB / 443.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004653/0.4229, allocations: 2.061 MB / 445.1 MB, free: 9.207 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006493/0.4235, allocations: 147.9 kB / 445.3 MB, free: 9.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007671/0.4312, allocations: 1.21 MB / 446.5 MB, free: 7.852 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001388/0.4327, allocations: 0.601 MB / 447.1 MB, free: 7.246 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005052/0.4377, allocations: 2.639 MB / 449.7 MB, free: 4.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.4503, allocations: 6.714 MB / 456.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.4503, allocations: 0 / 456.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4503, allocations: 0 / 456.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002092/0.4506, allocations: 0 / 456.5 MB, free: 13.84 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.01111/0.4617, allocations: 6.981 MB / 463.4 MB, free: 6.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.4617, allocations: 8.031 kB / 463.4 MB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002311/0.462, allocations: 161.2 kB / 463.6 MB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/0.463, allocations: 0.7919 MB / 464.4 MB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007432/0.4705, allocations: 4.695 MB / 469.1 MB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.484e-05/0.4706, allocations: 66 kB / 469.2 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002272/0.4708, allocations: 99.94 kB / 469.3 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002333/0.4731, allocations: 1.301 MB / 470.6 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.4732, allocations: 0 / 470.6 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.4733, allocations: 43.94 kB / 470.6 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.94e-05/0.4734, allocations: 31.98 kB / 470.6 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002566/0.4759, allocations: 1.48 MB / 472.1 MB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01004/0.486, allocations: 5.648 MB / 477.8 MB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/0.4878, allocations: 0.9928 MB / 478.7 MB, free: 7.219 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0018/0.4897, allocations: 1.227 MB / 480 MB, free: 5.992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06517/0.5548, allocations: 59.94 MB / 0.5273 GB, free: 1.871 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/0.5559, allocations: 0.556 MB / 0.5278 GB, free: 1.309 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.166e-06/0.556, allocations: 4 kB / 0.5278 GB, free: 1.305 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.003913/0.5599, allocations: 1.914 MB / 0.5297 GB, free: 15.38 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.262e-05/0.56, allocations: 67.91 kB / 0.5297 GB, free: 15.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007945/0.5679, allocations: 5.632 MB / 0.5352 GB, free: 9.699 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002107/0.5682, allocations: 41.7 kB / 0.5353 GB, free: 9.652 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002917/0.5711, allocations: 2.961 MB / 0.5382 GB, free: 6.68 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004854/0.5716, allocations: 309.4 kB / 0.5385 GB, free: 6.375 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006102/0.5722, allocations: 423 kB / 0.5389 GB, free: 5.957 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.5724, allocations: 301.1 kB / 0.5392 GB, free: 5.66 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009312/0.5733, allocations: 403.8 kB / 0.5395 GB, free: 5.266 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.5748, allocations: 1.095 MB / 0.5406 GB, free: 3.836 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002539/0.5774, allocations: 1.615 MB / 0.5422 GB, free: 1.891 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-05/0.5774, allocations: 8 kB / 0.5422 GB, free: 1.883 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.2037/0.7812, allocations: 2.239 MB / 0.5444 GB, free: 156.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.7812, allocations: 14.84 kB / 0.5444 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003016/0.7816, allocations: 167.8 kB / 0.5446 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.899e-05/0.7816, allocations: 32.72 kB / 0.5446 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.7829, allocations: 354.7 kB / 0.5449 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.097e-05/0.7829, allocations: 49.05 kB / 0.545 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.7849, allocations: 196.2 kB / 0.5452 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002466/0.7851, allocations: 124.2 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.001327/0.7865, allocations: 0.7202 MB / 0.546 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008745/0.7874, allocations: 0.755 MB / 0.5467 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004359/0.7917, allocations: 2.166 MB / 0.5488 GB, free: 156.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.7918, allocations: 8.297 kB / 0.5488 GB, free: 156.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.7918, allocations: 5.375 kB / 0.5488 GB, free: 156.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.7918, allocations: 3.234 kB / 0.5488 GB, free: 156.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006342/0.7981, allocations: 3.623 MB / 0.5524 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002039/0.7984, allocations: 147.7 kB / 0.5525 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007777/0.7992, allocations: 152.4 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.017e-05/0.7992, allocations: 5.984 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.7993, allocations: 63.23 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.687e-06/0.7993, allocations: 7.969 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.7993, allocations: 1.312 kB / 0.5527 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003889/0.8032, allocations: 2.192 MB / 0.5549 GB, free: 154.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002298/0.8055, allocations: 0.866 MB / 0.5557 GB, free: 154.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006852/0.8062, allocations: 17.39 kB / 0.5557 GB, free: 154.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.8073, allocations: 32.95 kB / 0.5558 GB, free: 154.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/0.8076, allocations: 102.8 kB / 0.5559 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.8077, allocations: 70.81 kB / 0.5559 GB, free: 154 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007681/0.8154, allocations: 3.638 MB / 0.5595 GB, free: 152.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8154, allocations: 0 / 0.5595 GB, free: 152.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0045/0.8199, allocations: 1.089 MB / 0.5606 GB, free: 152.8 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.006828/0.8268, allocations: 3.854 MB / 0.5643 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002681/0.8295, 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.626e-06/0.8295, allocations: 0 / 0.5657 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.8307, allocations: 0.7712 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.004153/0.8348, allocations: 0.9936 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.04094/0.8758, allocations: 30.76 MB / 0.5975 GB, free: 122.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/0.8771, allocations: 2.6 MB / 0.6 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001962/0.8791, allocations: 0.6889 MB / 0.6007 GB, free: 119.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00166/0.8808, allocations: 2.409 MB / 0.6031 GB, free: 117.1 MB / 478.1 MB Notification: Performance of SimCode: time 9.51e-07/0.8808, allocations: 4 kB / 0.6031 GB, free: 117.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.164/1.045, allocations: 111.6 MB / 0.712 GB, free: 5.328 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.33/27.37, allocations: 3.938 kB / 0.712 GB, free: 5.324 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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