Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_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.001184/0.001184, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.001031/0.001031, allocations: 192 kB / 18 MB, free: 5.219 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.292/1.292, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 47.94 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2505, allocations: 49.45 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007653/0.2582, allocations: 8.01 MB / 408.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01912/0.2773, allocations: 19.43 MB / 427.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001207/0.2786, allocations: 59.5 kB / 427.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002309/0.2809, allocations: 0.8532 MB / 428.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00508/0.286, allocations: 1.794 MB / 430.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003711/0.2897, allocations: 1.346 MB / 431.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004618/0.2944, allocations: 3.257 MB / 435 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.2948, allocations: 220.6 kB / 435.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006814/0.2955, allocations: 0.5522 MB / 435.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005708/0.296, allocations: 0.5629 MB / 436.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-05/0.2961, allocations: 40 kB / 436.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003422/0.2996, allocations: 1.447 MB / 437.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.2997, allocations: 166.8 kB / 438 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000587/0.3003, allocations: 0.6792 MB / 438.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002794/0.3031, allocations: 2.203 MB / 440.8 MB, free: 8 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3032, allocations: 4 kB / 440.9 MB, free: 4 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3032, allocations: 4 kB / 440.9 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.3032, allocations: 0 / 440.9 MB, free: 0 / 350.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.002757/0.3059, allocations: 2 MB / 442.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.306, allocations: 12.03 kB / 442.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.996e-05/0.3061, allocations: 70.53 kB / 442.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00021/0.3063, allocations: 193.7 kB / 443.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001722/0.308, allocations: 1.354 MB / 444.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.3081, allocations: 20.56 kB / 444.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.473e-05/0.3081, allocations: 27.94 kB / 444.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008725/0.309, allocations: 433.1 kB / 445 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.309, allocations: 4 kB / 445 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.308e-05/0.3091, allocations: 12 kB / 445 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.3091, allocations: 8 kB / 445 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.3102, allocations: 478 kB / 445.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002576/0.3128, allocations: 1.611 MB / 447.1 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009185/0.3137, allocations: 379.3 kB / 447.4 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007206/0.3145, allocations: 412.7 kB / 447.8 MB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01478/0.3293, allocations: 15.2 MB / 463 MB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000595/0.3299, allocations: 263.1 kB / 463.3 MB, free: 7.246 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.305e-06/0.3299, allocations: 0 / 463.3 MB, free: 7.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.001989/0.3319, allocations: 0.8408 MB / 464.1 MB, free: 6.375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.332, allocations: 63.34 kB / 464.2 MB, free: 6.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001552/0.3335, allocations: 1.451 MB / 465.6 MB, free: 4.812 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.136e-05/0.3336, allocations: 37.69 kB / 465.7 MB, free: 4.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005574/0.3341, allocations: 0.7187 MB / 466.4 MB, free: 4.043 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.22e-05/0.3342, allocations: 94.73 kB / 466.5 MB, free: 3.949 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.3344, allocations: 126 kB / 466.6 MB, free: 3.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3345, allocations: 330 kB / 466.9 MB, free: 3.492 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004436/0.335, allocations: 153 kB / 467.1 MB, free: 3.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005644/0.3355, allocations: 359.4 kB / 467.4 MB, free: 2.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009856/0.3365, allocations: 0.5333 MB / 468 MB, free: 2.277 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3366, allocations: 0 / 468 MB, free: 2.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001388/0.3379, allocations: 0.7547 MB / 468.7 MB, free: 1.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.338, allocations: 8 kB / 468.7 MB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.346e-05/0.338, allocations: 36.84 kB / 468.8 MB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/0.3384, allocations: 140.8 kB / 468.9 MB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004149/0.3388, allocations: 107.8 kB / 469 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005928/0.3394, allocations: 0.6812 MB / 469.7 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005279/0.3399, allocations: 79.41 kB / 469.8 MB, free: 448 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.947e-05/0.34, allocations: 35.94 kB / 469.8 MB, free: 412 kB / 382.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.0003536/0.3404, allocations: 273.7 kB / 470.1 MB, free: 128 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.3406, allocations: 185.8 kB / 470.3 MB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/0.3423, allocations: 0.7469 MB / 471 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3423, allocations: 3.984 kB / 471 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3424, allocations: 4 kB / 471 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3424, allocations: 0 / 471 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.3445, allocations: 1.312 MB / 472.3 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.873e-05/0.3446, allocations: 32 kB / 472.3 MB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.3448, allocations: 43.95 kB / 472.4 MB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002266/0.345, allocations: 128.8 kB / 472.5 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.3451, allocations: 24 kB / 472.5 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005128/0.3456, allocations: 0.6694 MB / 473.2 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3456, allocations: 128 / 473.2 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.3469, allocations: 0.7163 MB / 473.9 MB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003962/0.3473, allocations: 282.7 kB / 474.2 MB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.3474, allocations: 8 kB / 474.2 MB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000421/0.3479, allocations: 27.95 kB / 474.2 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.348, allocations: 47.84 kB / 474.3 MB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.55e-05/0.348, allocations: 23.98 kB / 474.3 MB, free: 11.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001043/0.3491, allocations: 0.9571 MB / 475.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3491, allocations: 0 / 475.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007976/0.3499, allocations: 327.8 kB / 475.6 MB, free: 10.43 MB / 398.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.002145/0.3521, allocations: 1.745 MB / 477.3 MB, free: 8.645 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.3533, allocations: 0.517 MB / 477.8 MB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3533, allocations: 0 / 477.8 MB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006539/0.354, allocations: 287.5 kB / 478.1 MB, free: 7.824 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.3553, allocations: 306.9 kB / 478.4 MB, free: 7.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.367, allocations: 8.962 MB / 487.4 MB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005857/0.3676, allocations: 1.149 MB / 488.5 MB, free: 13 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005227/0.3681, allocations: 203.9 kB / 488.7 MB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005438/0.3687, allocations: 0.5618 MB / 489.3 MB, free: 12.24 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3687, allocations: 0 / 489.3 MB, free: 12.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06022/0.4289, allocations: 35.25 MB / 0.5123 GB, free: 9.258 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.29, allocations: 7.25 kB / 0.5123 GB, free: 9.254 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches