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.001153/0.001153, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001201/0.001201, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.403/1.403, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2767, allocations: 49.45 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007725/0.2844, allocations: 8.015 MB / 408.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01887/0.3033, allocations: 19.44 MB / 427.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.3045, allocations: 63.44 kB / 427.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002247/0.3067, allocations: 0.8546 MB / 428.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007096/0.3139, allocations: 1.813 MB / 430.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003986/0.3179, allocations: 1.346 MB / 431.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00478/0.3227, allocations: 3.253 MB / 435 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003647/0.3231, allocations: 216.6 kB / 435.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007209/0.3238, allocations: 0.5639 MB / 435.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005633/0.3244, allocations: 0.5629 MB / 436.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.9e-05/0.3245, allocations: 40 kB / 436.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003543/0.328, allocations: 1.444 MB / 437.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.3282, allocations: 174.8 kB / 438 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006166/0.3289, allocations: 0.6754 MB / 438.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003125/0.332, allocations: 2.221 MB / 440.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.332, allocations: 4 kB / 440.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.332, allocations: 0 / 440.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.197e-05/0.3321, allocations: 0 / 440.9 MB, free: 15.93 MB / 366.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.00299/0.3351, allocations: 2.074 MB / 443 MB, free: 13.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3351, allocations: 8.031 kB / 443 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.685e-05/0.3352, allocations: 70.53 kB / 443.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.3354, allocations: 194.8 kB / 443.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.3371, allocations: 1.36 MB / 444.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.3372, allocations: 24.56 kB / 444.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.863e-05/0.3373, allocations: 35.95 kB / 444.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008671/0.3381, allocations: 437 kB / 445.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3382, allocations: 0 / 445.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.3382, allocations: 12 kB / 445.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.3382, allocations: 12 kB / 445.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.3393, allocations: 474.1 kB / 445.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002657/0.342, allocations: 1.623 MB / 447.2 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009158/0.3429, allocations: 375.3 kB / 447.6 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006921/0.3436, allocations: 414.4 kB / 448 MB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0149/0.3585, allocations: 15.21 MB / 463.2 MB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006271/0.3592, allocations: 263.1 kB / 463.4 MB, free: 7.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.134e-06/0.3592, allocations: 0 / 463.4 MB, free: 7.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002077/0.3613, allocations: 0.8418 MB / 464.3 MB, free: 6.199 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.3613, allocations: 59.34 kB / 464.3 MB, free: 6.129 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/0.3631, allocations: 1.463 MB / 465.8 MB, free: 4.629 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.3631, allocations: 37.69 kB / 465.8 MB, free: 4.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006153/0.3638, allocations: 0.7232 MB / 466.6 MB, free: 3.855 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.798e-05/0.3639, allocations: 95.2 kB / 466.7 MB, free: 3.762 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.3641, allocations: 126.1 kB / 466.8 MB, free: 3.633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3642, allocations: 326 kB / 467.1 MB, free: 3.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004385/0.3647, allocations: 165 kB / 467.3 MB, free: 3.148 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005581/0.3652, allocations: 355.4 kB / 467.6 MB, free: 2.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000981/0.3662, allocations: 0.5372 MB / 468.1 MB, free: 2.082 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.3662, allocations: 4 kB / 468.1 MB, free: 2.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00145/0.3677, allocations: 0.7561 MB / 468.9 MB, free: 1.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3677, allocations: 8 kB / 468.9 MB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.26e-05/0.3678, allocations: 40 kB / 469 MB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003257/0.3681, allocations: 132.8 kB / 469.1 MB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004101/0.3686, allocations: 116 kB / 469.2 MB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006156/0.3692, allocations: 0.6734 MB / 469.9 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005551/0.3697, allocations: 75.53 kB / 469.9 MB, free: 252 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.065e-05/0.3698, allocations: 36 kB / 470 MB, free: 216 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.0003907/0.3702, allocations: 275.2 kB / 470.2 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.3704, allocations: 198.7 kB / 470.4 MB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/0.3721, allocations: 0.751 MB / 471.2 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3721, allocations: 4 kB / 471.2 MB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3721, allocations: 0 / 471.2 MB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3721, allocations: 0 / 471.2 MB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.3743, allocations: 1.308 MB / 472.5 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.817e-05/0.3744, allocations: 36 kB / 472.5 MB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.3746, allocations: 44.02 kB / 472.6 MB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002575/0.3749, allocations: 132.7 kB / 472.7 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.306e-05/0.3749, allocations: 23.94 kB / 472.7 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005619/0.3755, allocations: 0.6617 MB / 473.4 MB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3755, allocations: 4.062 kB / 473.4 MB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.3768, allocations: 0.7211 MB / 474.1 MB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004562/0.3773, allocations: 295.7 kB / 474.4 MB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.3775, allocations: 8 kB / 474.4 MB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004216/0.3779, allocations: 28.08 kB / 474.4 MB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.378, allocations: 55.78 kB / 474.5 MB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.3781, allocations: 27.98 kB / 474.5 MB, free: 11.49 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001194/0.3793, allocations: 0.9571 MB / 475.5 MB, free: 10.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3793, allocations: 0 / 475.5 MB, free: 10.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008471/0.3801, allocations: 327.6 kB / 475.8 MB, free: 10.2 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.002478/0.3826, allocations: 1.748 MB / 477.6 MB, free: 8.414 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.384, allocations: 0.517 MB / 478.1 MB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.384, allocations: 4.125 kB / 478.1 MB, free: 7.883 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006481/0.3846, allocations: 291.2 kB / 478.4 MB, free: 7.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.386, allocations: 314.9 kB / 478.7 MB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.3987, allocations: 8.998 MB / 487.7 MB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006639/0.3994, allocations: 1.145 MB / 488.8 MB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005698/0.4, allocations: 199.9 kB / 489 MB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005832/0.4006, allocations: 0.5657 MB / 489.6 MB, free: 11.96 MB / 414.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4006, allocations: 0 / 489.6 MB, free: 11.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06493/0.4656, allocations: 35.26 MB / 0.5125 GB, free: 8.969 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.11, allocations: 4.406 kB / 0.5125 GB, free: 8.965 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