Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002317/0.002317, allocations: 210.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.576/1.576, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 47.92 kB / 377.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2306, allocations: 53.36 MB / 431.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008534/0.2391, allocations: 6.925 MB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02099/0.2601, allocations: 16.7 MB / 454.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008961/0.261, allocations: 94.94 kB / 454.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002095/0.2631, allocations: 0.7569 MB / 455.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004983/0.268, allocations: 1.823 MB / 457.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003674/0.2717, allocations: 1.313 MB / 458.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004995/0.2767, allocations: 3.311 MB / 462 MB, free: 7.629 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003515/0.2771, allocations: 132.8 kB / 462.1 MB, free: 7.473 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008764/0.2779, allocations: 0.5911 MB / 462.7 MB, free: 6.879 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006833/0.2786, allocations: 0.5667 MB / 463.3 MB, free: 6.309 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.2787, allocations: 40 kB / 463.3 MB, free: 6.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003/0.2817, allocations: 1.214 MB / 464.5 MB, free: 5.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.2819, allocations: 166.8 kB / 464.7 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005861/0.2825, allocations: 0.5045 MB / 465.2 MB, free: 4.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00302/0.2855, allocations: 2.233 MB / 467.4 MB, free: 2.141 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.2855, allocations: 4 kB / 467.4 MB, free: 2.137 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2855, allocations: 0 / 467.4 MB, free: 2.137 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.873e-05/0.2856, allocations: 0 / 467.4 MB, free: 2.137 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.003042/0.2886, allocations: 1.995 MB / 469.4 MB, free: 100 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2886, allocations: 8.031 kB / 469.4 MB, free: 92 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.538e-05/0.2887, allocations: 74.47 kB / 469.5 MB, free: 8 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.289, allocations: 206.7 kB / 469.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/0.291, allocations: 1.253 MB / 471 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.291, allocations: 16.66 kB / 471 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.263e-05/0.2911, allocations: 28 kB / 471 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009224/0.292, allocations: 437.8 kB / 471.4 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.2921, allocations: 0 / 471.4 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.252e-05/0.2921, allocations: 12 kB / 471.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.2921, allocations: 15.98 kB / 471.5 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.2933, allocations: 470.4 kB / 471.9 MB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002796/0.296, allocations: 1.477 MB / 473.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009683/0.297, allocations: 343.3 kB / 473.7 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007636/0.2978, allocations: 369.8 kB / 474.1 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01374/0.3115, allocations: 7 MB / 481.1 MB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006238/0.3121, allocations: 251.9 kB / 481.3 MB, free: 3.801 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.074e-06/0.3121, allocations: 0 / 481.3 MB, free: 3.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002048/0.3142, allocations: 0.7704 MB / 482.1 MB, free: 3.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.3142, allocations: 67.27 kB / 482.2 MB, free: 2.941 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001792/0.316, allocations: 1.463 MB / 483.6 MB, free: 1.441 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.3161, allocations: 33.7 kB / 483.7 MB, free: 1.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006874/0.3168, allocations: 0.7232 MB / 484.4 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.961e-05/0.3169, allocations: 103.2 kB / 484.5 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.317, allocations: 134 kB / 484.6 MB, free: 448 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3172, allocations: 322 kB / 484.9 MB, free: 120 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004743/0.3177, allocations: 160.9 kB / 485.1 MB, free: 15.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006203/0.3183, allocations: 358.9 kB / 485.5 MB, free: 15.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.3194, allocations: 0.5338 MB / 486 MB, free: 14.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.3194, allocations: 4 kB / 486 MB, free: 14.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001537/0.3209, allocations: 0.7523 MB / 486.7 MB, free: 14.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3209, allocations: 11.94 kB / 486.8 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.468e-05/0.321, allocations: 36 kB / 486.8 MB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000319/0.3213, allocations: 140.8 kB / 486.9 MB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004371/0.3218, allocations: 112 kB / 487 MB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006676/0.3224, allocations: 0.6773 MB / 487.7 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005339/0.323, allocations: 79.52 kB / 487.8 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.448e-05/0.323, allocations: 36 kB / 487.8 MB, free: 13.01 MB / 398.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.0003906/0.3234, allocations: 265.7 kB / 488.1 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.3236, allocations: 198.8 kB / 488.3 MB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/0.3254, allocations: 0.7346 MB / 489 MB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3254, allocations: 4 kB / 489 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3254, allocations: 4 kB / 489 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.3255, allocations: 3.984 kB / 489 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002323/0.3278, allocations: 1.249 MB / 490.3 MB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.845e-05/0.3278, allocations: 32 kB / 490.3 MB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.3281, allocations: 51.89 kB / 490.4 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002778/0.3284, allocations: 120.8 kB / 490.5 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.3284, allocations: 19.94 kB / 490.5 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006394/0.3291, allocations: 0.6734 MB / 491.2 MB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3291, allocations: 0 / 491.2 MB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.3304, allocations: 0.718 MB / 491.9 MB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004536/0.3309, allocations: 208.6 kB / 492.1 MB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.331, allocations: 11.98 kB / 492.1 MB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.3315, allocations: 23.97 kB / 492.1 MB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.3316, allocations: 51.86 kB / 492.2 MB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.3316, allocations: 20 kB / 492.2 MB, free: 8.496 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001279/0.3329, allocations: 0.961 MB / 493.2 MB, free: 7.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3329, allocations: 0 / 493.2 MB, free: 7.516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008767/0.3338, allocations: 331.6 kB / 493.5 MB, free: 7.191 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.002461/0.3362, allocations: 1.744 MB / 495.2 MB, free: 5.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.3376, allocations: 0.4926 MB / 495.7 MB, free: 4.906 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3376, allocations: 0 / 495.7 MB, free: 4.906 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006735/0.3382, allocations: 279.3 kB / 496 MB, free: 4.621 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.3395, allocations: 315.1 kB / 496.3 MB, free: 4.309 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.3528, allocations: 9.001 MB / 0.4935 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/0.3533, allocations: 0.5667 MB / 0.494 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005448/0.3539, allocations: 199.9 kB / 0.4942 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006532/0.3545, allocations: 0.5579 MB / 0.4947 GB, free: 9.559 MB / 414.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3545, allocations: 0 / 0.4947 GB, free: 9.559 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07908/0.4336, allocations: 36.31 MB / 0.5302 GB, free: 5.656 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/14.58, allocations: 7.844 kB / 0.5302 GB, free: 5.648 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.310763884015614]