Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001419/0.001419, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001659/0.001659, allocations: 213.6 kB / 23.75 MB, free: 4.668 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.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 51.92 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3032, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02706/0.3303, allocations: 26.82 MB / 458 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03212/0.3624, allocations: 22.44 MB / 480.4 MB, free: 5.406 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005951/0.3684, allocations: 269.1 kB / 480.7 MB, free: 5.141 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006737/0.3751, allocations: 1.789 MB / 482.4 MB, free: 3.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01468/0.3898, allocations: 3.318 MB / 485.8 MB, free: 15.99 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007267/0.3971, allocations: 1.652 MB / 487.4 MB, free: 14.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02448/0.4215, allocations: 12.9 MB / 0.4886 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001719/0.4233, allocations: 0.5121 MB / 0.4891 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004327/0.4276, allocations: 2.193 MB / 0.4912 GB, free: 14.65 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004046/0.4316, allocations: 2.1 MB / 0.4933 GB, free: 12.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000484/0.4321, allocations: 136 kB / 0.4934 GB, free: 12.4 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00517/0.4373, allocations: 1.541 MB / 0.4949 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008622/0.4381, allocations: 0.5971 MB / 0.4955 GB, free: 10.26 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004084/0.4422, allocations: 2.62 MB / 0.4981 GB, free: 7.625 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01226/0.4545, allocations: 6.663 MB / 0.5046 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.878e-06/0.4545, allocations: 7.938 kB / 0.5046 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.4545, allocations: 0 / 0.5046 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003029/0.4548, allocations: 0 / 0.5046 GB, free: 0.9219 MB / 414.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.01315/0.468, allocations: 6.855 MB / 0.5113 GB, free: 9.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.468, allocations: 12.03 kB / 0.5113 GB, free: 9.969 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002537/0.4683, allocations: 157.2 kB / 0.5114 GB, free: 9.805 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001252/0.4695, allocations: 0.7764 MB / 0.5122 GB, free: 9.023 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0086/0.4781, allocations: 4.386 MB / 0.5165 GB, free: 4.516 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.528e-05/0.4782, allocations: 69.94 kB / 0.5165 GB, free: 4.445 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002854/0.4785, allocations: 103.8 kB / 0.5166 GB, free: 4.344 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/0.4809, allocations: 1.305 MB / 0.5179 GB, free: 3.023 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.481, allocations: 0 / 0.5179 GB, free: 3.023 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.4811, allocations: 36 kB / 0.518 GB, free: 2.988 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.417e-05/0.4811, allocations: 43.97 kB / 0.518 GB, free: 2.945 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002665/0.4838, allocations: 1.488 MB / 0.5194 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/0.4949, allocations: 5.554 MB / 0.5249 GB, free: 11.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/0.4967, allocations: 0.8757 MB / 0.5257 GB, free: 10.94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00169/0.4984, allocations: 1.071 MB / 0.5268 GB, free: 9.871 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2763/0.7746, allocations: 27.15 MB / 0.5533 GB, free: 95.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008997/0.7755, allocations: 0.5712 MB / 0.5538 GB, free: 95.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.306e-06/0.7755, allocations: 0 / 0.5538 GB, free: 95.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002935/0.7785, allocations: 1.902 MB / 0.5557 GB, free: 93.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.7785, allocations: 66.05 kB / 0.5558 GB, free: 93.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005602/0.7841, allocations: 5.59 MB / 0.5612 GB, free: 88.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001952/0.7843, allocations: 43.02 kB / 0.5613 GB, free: 88.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/0.786, allocations: 2.965 MB / 0.5642 GB, free: 85.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002983/0.7863, allocations: 316 kB / 0.5645 GB, free: 84.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003993/0.7867, allocations: 423 kB / 0.5649 GB, free: 84.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.07e-05/0.7867, allocations: 309.1 kB / 0.5652 GB, free: 84.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007017/0.7874, allocations: 397.5 kB / 0.5655 GB, free: 83.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008675/0.7883, allocations: 1.098 MB / 0.5666 GB, free: 82.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.79, allocations: 1.613 MB / 0.5682 GB, free: 80.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.79, allocations: 4 kB / 0.5682 GB, free: 80.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003153/0.7931, allocations: 2.241 MB / 0.5704 GB, free: 78.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.7931, allocations: 16.5 kB / 0.5704 GB, free: 78.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001772/0.7933, allocations: 164 kB / 0.5705 GB, free: 78.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.72e-05/0.7934, allocations: 35.62 kB / 0.5706 GB, free: 78.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.7944, allocations: 355.4 kB / 0.5709 GB, free: 77.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.709e-05/0.7944, allocations: 43.86 kB / 0.571 GB, free: 77.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.7962, allocations: 193.5 kB / 0.5711 GB, free: 77.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/0.7964, allocations: 131.2 kB / 0.5713 GB, free: 77.47 MB / 446.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.001152/0.7975, allocations: 0.7133 MB / 0.572 GB, free: 76.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006749/0.7982, allocations: 0.7492 MB / 0.5727 GB, free: 76.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003809/0.802, allocations: 2.153 MB / 0.5748 GB, free: 73.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.802, allocations: 8 kB / 0.5748 GB, free: 73.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.802, allocations: 0 / 0.5748 GB, free: 73.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.802, allocations: 3.984 kB / 0.5748 GB, free: 73.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005033/0.8071, allocations: 3.587 MB / 0.5783 GB, free: 70.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001533/0.8072, allocations: 136 kB / 0.5784 GB, free: 70.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000686/0.8079, allocations: 155.8 kB / 0.5786 GB, free: 69.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/0.8079, allocations: 4 kB / 0.5786 GB, free: 69.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.687e-05/0.808, allocations: 59.98 kB / 0.5787 GB, free: 69.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.666e-06/0.808, allocations: 11.5 kB / 0.5787 GB, free: 69.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.808, allocations: 0 / 0.5787 GB, free: 69.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002977/0.811, allocations: 2.194 MB / 0.5808 GB, free: 67.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/0.8125, allocations: 0.7781 MB / 0.5816 GB, free: 66.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005669/0.8131, allocations: 16 kB / 0.5816 GB, free: 66.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.8141, allocations: 39.48 kB / 0.5816 GB, free: 66.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.8143, allocations: 104.5 kB / 0.5817 GB, free: 66.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.8144, allocations: 67.98 kB / 0.5818 GB, free: 66.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004534/0.819, allocations: 3.608 MB / 0.5853 GB, free: 63.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.819, allocations: 0 / 0.5853 GB, free: 63.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002344/0.8213, allocations: 1.088 MB / 0.5864 GB, free: 62.07 MB / 446.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.004264/0.8256, allocations: 3.84 MB / 0.5901 GB, free: 58.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001999/0.8276, allocations: 1.366 MB / 0.5915 GB, free: 56.85 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.8276, allocations: 0 / 0.5915 GB, free: 56.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008657/0.8285, allocations: 0.7361 MB / 0.5922 GB, free: 56.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004704/0.8332, allocations: 1.169 MB / 0.5933 GB, free: 54.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03912/0.8723, allocations: 30.56 MB / 0.6232 GB, free: 23.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00131/0.8736, allocations: 2.595 MB / 0.6257 GB, free: 20.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001865/0.8755, allocations: 0.6807 MB / 0.6264 GB, free: 20.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001695/0.8772, allocations: 2.397 MB / 0.6287 GB, free: 17.84 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.8772, allocations: 0 / 0.6287 GB, free: 17.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2076/1.085, allocations: 112.5 MB / 0.7386 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.39/30.47, allocations: 7.781 kB / 0.7386 GB, free: 1.93 MB / 0.5294 GB " [Timeout remaining time 629] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp1.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp3.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp3.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp4.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp4.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 33.47733659899677]