Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",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.001247/0.001247, 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.001266/0.001266, 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.383/1.383, 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.001394/0.001394, allocations: 55.91 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08815/0.08955, allocations: 46.61 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.1916/0.2812, allocations: 7.719 MB / 382.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02109/0.3023, allocations: 18.52 MB / 400.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.3036, allocations: 62.66 kB / 400.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003106/0.3068, allocations: 0.8391 MB / 401.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00758/0.3144, allocations: 1.786 MB / 403.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005189/0.3196, allocations: 1.289 MB / 404.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005569/0.3252, allocations: 3.184 MB / 408 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004333/0.3257, allocations: 226.5 kB / 408.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008024/0.3265, allocations: 0.5196 MB / 408.8 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006007/0.3271, allocations: 0.5511 MB / 409.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.998e-05/0.3272, allocations: 41.41 kB / 409.4 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00443/0.3316, allocations: 1.129 MB / 410.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002422/0.3319, allocations: 167.6 kB / 410.7 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008815/0.3328, allocations: 0.6871 MB / 411.3 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004288/0.3371, allocations: 2.237 MB / 413.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3371, allocations: 5.406 kB / 413.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3371, allocations: 0 / 413.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.517e-05/0.3372, allocations: 0 / 413.6 MB, free: 6.184 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00334/0.3405, allocations: 2.086 MB / 415.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3406, allocations: 9.031 kB / 415.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.621e-05/0.3407, allocations: 65.38 kB / 415.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003084/0.341, allocations: 209.8 kB / 415.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/0.3429, allocations: 1.378 MB / 417.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.343, allocations: 19.75 kB / 417.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.287e-05/0.3431, allocations: 25.59 kB / 417.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008848/0.344, allocations: 437.4 kB / 417.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.344, allocations: 0 / 417.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.569e-05/0.344, allocations: 10.44 kB / 417.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.3441, allocations: 11.33 kB / 417.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.3451, allocations: 480.2 kB / 418.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002823/0.348, allocations: 1.626 MB / 419.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009204/0.3489, allocations: 372.7 kB / 420.3 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007279/0.3496, allocations: 406.9 kB / 420.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01567/0.3653, allocations: 15.24 MB / 435.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006574/0.366, allocations: 263 kB / 436.2 MB, free: 8 kB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.505e-06/0.366, allocations: 8 kB / 436.2 MB, free: 0 / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002253/0.3683, allocations: 0.8418 MB / 437 MB, free: 15.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.3684, allocations: 59.39 kB / 437.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001975/0.3704, allocations: 1.468 MB / 438.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.096e-05/0.3705, allocations: 29.7 kB / 438.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006927/0.3712, allocations: 0.7271 MB / 439.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.3713, allocations: 99.17 kB / 439.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002092/0.3715, allocations: 126.1 kB / 439.5 MB, free: 12.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3717, allocations: 337.9 kB / 439.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00048/0.3722, allocations: 153.9 kB / 440 MB, free: 12.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005783/0.3727, allocations: 359.4 kB / 440.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.3738, allocations: 0.5333 MB / 440.9 MB, free: 11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.3738, allocations: 4 kB / 440.9 MB, free: 11 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001809/0.3756, allocations: 0.7681 MB / 441.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.3756, allocations: 8 kB / 441.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.806e-05/0.3757, allocations: 43.94 kB / 441.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003227/0.376, allocations: 136.8 kB / 441.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004304/0.3765, allocations: 110.6 kB / 441.9 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006504/0.3771, allocations: 0.6889 MB / 442.6 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009929/0.3781, allocations: 63.64 kB / 442.7 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.827e-05/0.3782, allocations: 36 kB / 442.7 MB, free: 9.117 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005138/0.3788, allocations: 277.5 kB / 443 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002443/0.379, allocations: 202.7 kB / 443.2 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.3808, allocations: 0.75 MB / 444 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.3808, allocations: 4 kB / 444 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3808, allocations: 0 / 444 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3808, allocations: 0 / 444 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002326/0.3832, allocations: 1.315 MB / 445.3 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.602e-05/0.3832, allocations: 39.98 kB / 445.3 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/0.3835, allocations: 43.95 kB / 445.4 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000245/0.3837, allocations: 120.9 kB / 445.5 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.939e-05/0.3838, allocations: 23.98 kB / 445.5 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006021/0.3844, allocations: 0.6732 MB / 446.2 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3844, allocations: 1.406 kB / 446.2 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.3857, allocations: 0.7328 MB / 446.9 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004903/0.3862, allocations: 283.8 kB / 447.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.3864, allocations: 7.984 kB / 447.2 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.3869, allocations: 27.97 kB / 447.2 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.387, allocations: 39.95 kB / 447.3 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.401e-05/0.387, allocations: 20.88 kB / 447.3 MB, free: 4.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001107/0.3881, allocations: 0.9691 MB / 448.2 MB, free: 3.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.893e-06/0.3882, allocations: 4 kB / 448.2 MB, free: 3.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009558/0.3891, allocations: 343.4 kB / 448.6 MB, free: 3.082 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002398/0.3915, allocations: 1.737 MB / 450.3 MB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.3929, allocations: 0.5112 MB / 450.8 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3929, allocations: 1.188 kB / 450.8 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006476/0.3936, allocations: 299.3 kB / 451.1 MB, free: 488 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.3946, allocations: 252.8 kB / 451.4 MB, free: 236 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.4069, allocations: 9.074 MB / 460.4 MB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006263/0.4076, allocations: 1.149 MB / 461.6 MB, free: 5.594 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005528/0.4082, allocations: 207.9 kB / 461.8 MB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005632/0.4087, allocations: 0.5657 MB / 462.4 MB, free: 4.824 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4088, allocations: 0 / 462.4 MB, free: 4.824 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06557/0.4743, allocations: 35.46 MB / 497.8 MB, free: 1.266 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.68/15.16, allocations: 19.89 kB / 497.8 MB, free: 1.246 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv --start-time 0 --stop-time 1e-11 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 5.0025e-15 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches